1
0
forked from aniani/vim

updated for version 7.3.292

Problem:    Crash when using fold markers and selecting a visual block that
            includes a folded line and goes to end of line. (Sam Lidder)
Solution:   Check for the column to be MAXCOL. (James Vega)
This commit is contained in:
Bram Moolenaar
2011-09-02 14:07:36 +02:00
parent 6fabcbe260
commit 6c167c6451
2 changed files with 5 additions and 1 deletions

View File

@@ -2531,7 +2531,9 @@ fold_line(wp, fold_count, foldinfo, lnum, row)
/* Visual block mode: highlight the chars part of the block */ /* Visual block mode: highlight the chars part of the block */
if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp)) if (wp->w_old_cursor_fcol + txtcol < (colnr_T)W_WIDTH(wp))
{ {
if (wp->w_old_cursor_lcol + txtcol < (colnr_T)W_WIDTH(wp)) if (wp->w_old_cursor_lcol != MAXCOL
&& wp->w_old_cursor_lcol + txtcol
< (colnr_T)W_WIDTH(wp))
len = wp->w_old_cursor_lcol; len = wp->w_old_cursor_lcol;
else else
len = W_WIDTH(wp) - txtcol; len = W_WIDTH(wp) - txtcol;

View File

@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
292,
/**/ /**/
291, 291,
/**/ /**/