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

patch 7.4.1758

Problem:    Triggering CursorHoldI when in CTRL-X mode causes problems.
Solution:   Do not trigger CursorHoldI in CTRL-X mode. Add "!" flag to
            feedkeys() (test with that didn't work though).
This commit is contained in:
Bram Moolenaar
2016-04-20 17:37:41 +02:00
parent 8e42ae5069
commit 245c41070c
3 changed files with 14 additions and 3 deletions

View File

@@ -1526,7 +1526,12 @@ normalchar:
#ifdef FEAT_AUTOCMD
/* If typed something may trigger CursorHoldI again. */
if (c != K_CURSORHOLD)
if (c != K_CURSORHOLD
# ifdef FEAT_COMPL_FUNC
/* but not in CTRL-X mode, a script can't restore the state */
&& ctrl_x_mode == 0
# endif
)
did_cursorhold = FALSE;
#endif