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.
diff --git a/src/misc1.c b/src/misc1.c
index b14f2ed..7235617 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -3114,10 +3114,11 @@
&& (!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. */