mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0-136
This commit is contained in:
@@ -2842,7 +2842,8 @@ changed_common(lnum, col, lnume, xtra)
|
||||
|
||||
#ifdef FEAT_AUTOCMD
|
||||
/* when the cursor line is changed always trigger CursorMoved */
|
||||
if (lnum <= curwin->w_cursor.lnum && lnume > curwin->w_cursor.lnum)
|
||||
if (lnum <= curwin->w_cursor.lnum
|
||||
&& lnume + (xtra < 0 ? -xtra : xtra) > curwin->w_cursor.lnum)
|
||||
last_cursormoved.lnum = 0;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user