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:
@@ -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. */
|
||||
|
Reference in New Issue
Block a user