0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.1296

Problem:    Cursor changes column with up motion when the matchparen plugin
            saves and restores the cursor position. (Martin Kunev)
Solution:   Make sure curswant is updated before invoking the autocommand.
This commit is contained in:
Bram Moolenaar
2016-02-09 21:24:46 +01:00
parent 4d8747cdfc
commit f068dcafcf
2 changed files with 7 additions and 0 deletions

View File

@@ -1611,7 +1611,12 @@ ins_redraw(
# endif # endif
# ifdef FEAT_AUTOCMD # ifdef FEAT_AUTOCMD
if (has_cursormovedI()) if (has_cursormovedI())
{
/* Make sure curswant is correct, an autocommand may call
* getcurpos(). */
update_curswant();
apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf); apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf);
}
# endif # endif
# ifdef FEAT_CONCEAL # ifdef FEAT_CONCEAL
if (curwin->w_p_cole > 0) if (curwin->w_p_cole > 0)

View File

@@ -747,6 +747,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 */
/**/
1296,
/**/ /**/
1295, 1295,
/**/ /**/