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

updated for version 7.4.661

Problem:    Using "0 CTRL-D" in Insert mode may have CursorHoldI interfere.
            (Gary Johnson)
Solution:   Don't store K_CURSORHOLD as the last character. (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar
2015-03-13 13:24:23 +01:00
parent c7dc1f4a53
commit 6c5bdb751c
2 changed files with 4 additions and 1 deletions

View File

@@ -760,7 +760,8 @@ edit(cmdchar, startln, count)
/*
* Get a character for Insert mode. Ignore K_IGNORE.
*/
lastc = c; /* remember previous char for CTRL-D */
if (c != K_CURSORHOLD)
lastc = c; /* remember the previous char for CTRL-D */
do
{
c = safe_vgetc();