summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-12-30 12:30:31 +0100
committerBram Moolenaar <Bram@vim.org>2010-12-30 12:30:31 +0100
commit946ffd4606e2b5011fdddb0c87dc7d8b4548a657 (patch)
tree3c9d58812d1c8224fb6fcc462d77238e9968df9a /src/misc1.c
parent657ae0bddd6a66b7d33c1518be419ce5d3e72091 (diff)
downloadvim-git-946ffd4606e2b5011fdddb0c87dc7d8b4548a657.tar.gz
updated for version 7.3.091v7.3.091
Problem: "vim -w foo" writes special key codes for removed escape sequences. (Josh Triplett) Solution: Don't write K_IGNORE codes.
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/misc1.c b/src/misc1.c
index b14f2ed14..7235617fc 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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. */