comparison src/edit.c @ 8945:a3060addc328 v7.4.1758

commit https://github.com/vim/vim/commit/245c41070c7f37d52be43cce0cb140bd3ade6c7e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 20 17:37:41 2016 +0200 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).
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Apr 2016 17:45:06 +0200
parents 47036dcd83a4
children 9f97a6290c63
comparison
equal deleted inserted replaced
8944:929a23de381c 8945:a3060addc328
1524 break; 1524 break;
1525 } /* end of switch (c) */ 1525 } /* end of switch (c) */
1526 1526
1527 #ifdef FEAT_AUTOCMD 1527 #ifdef FEAT_AUTOCMD
1528 /* If typed something may trigger CursorHoldI again. */ 1528 /* If typed something may trigger CursorHoldI again. */
1529 if (c != K_CURSORHOLD) 1529 if (c != K_CURSORHOLD
1530 # ifdef FEAT_COMPL_FUNC
1531 /* but not in CTRL-X mode, a script can't restore the state */
1532 && ctrl_x_mode == 0
1533 # endif
1534 )
1530 did_cursorhold = FALSE; 1535 did_cursorhold = FALSE;
1531 #endif 1536 #endif
1532 1537
1533 /* If the cursor was moved we didn't just insert a space */ 1538 /* If the cursor was moved we didn't just insert a space */
1534 if (arrow_used) 1539 if (arrow_used)