1
0
forked from aniani/vim

updated for version 7.3.091

Problem:    "vim -w foo" writes special key codes for removed escape
            sequences. (Josh Triplett)
Solution:   Don't write K_IGNORE codes.
This commit is contained in:
Bram Moolenaar
2010-12-30 12:30:31 +01:00
parent 657ae0bddd
commit 946ffd4606
5 changed files with 34 additions and 19 deletions

View File

@@ -3114,10 +3114,11 @@ get_keystroke()
&& (!p_ttimeout || waited * 100L < (p_ttm < 0 ? p_tm : p_ttm)))
continue;
/* found a termcode: adjust length */
if (n > 0)
if (n == KEYLEN_REMOVED) /* key code removed */
continue;
if (n > 0) /* found a termcode: adjust length */
len = n;
if (len == 0) /* nothing typed yet */
if (len == 0) /* nothing typed yet */
continue;
/* Handle modifier and/or special key code. */