mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.2-139
This commit is contained in:
parent
dd310301ec
commit
552c8a5677
11
src/misc2.c
11
src/misc2.c
@ -496,7 +496,8 @@ check_cursor_col()
|
|||||||
{
|
{
|
||||||
colnr_T len;
|
colnr_T len;
|
||||||
#ifdef FEAT_VIRTUALEDIT
|
#ifdef FEAT_VIRTUALEDIT
|
||||||
colnr_T oldcol = curwin->w_cursor.col + curwin->w_cursor.coladd;
|
colnr_T oldcol = curwin->w_cursor.col;
|
||||||
|
colnr_T oldcoladd = curwin->w_cursor.col + curwin->w_cursor.coladd;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
len = (colnr_T)STRLEN(ml_get_curline());
|
len = (colnr_T)STRLEN(ml_get_curline());
|
||||||
@ -535,7 +536,13 @@ check_cursor_col()
|
|||||||
if (oldcol == MAXCOL)
|
if (oldcol == MAXCOL)
|
||||||
curwin->w_cursor.coladd = 0;
|
curwin->w_cursor.coladd = 0;
|
||||||
else if (ve_flags == VE_ALL)
|
else if (ve_flags == VE_ALL)
|
||||||
curwin->w_cursor.coladd = oldcol - curwin->w_cursor.col;
|
{
|
||||||
|
if (oldcoladd > curwin->w_cursor.col)
|
||||||
|
curwin->w_cursor.coladd = oldcoladd - curwin->w_cursor.col;
|
||||||
|
else
|
||||||
|
/* avoid weird number when there is a miscalculation or overflow */
|
||||||
|
curwin->w_cursor.coladd = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -676,6 +676,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 */
|
||||||
|
/**/
|
||||||
|
139,
|
||||||
/**/
|
/**/
|
||||||
138,
|
138,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user