diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-12-30 12:30:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-12-30 12:30:31 +0100 |
commit | 946ffd4606e2b5011fdddb0c87dc7d8b4548a657 (patch) | |
tree | 3c9d58812d1c8224fb6fcc462d77238e9968df9a /src/misc1.c | |
parent | 657ae0bddd6a66b7d33c1518be419ce5d3e72091 (diff) | |
download | vim-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.c | 7 |
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. */ |