diff options
-rw-r--r-- | winsup/cygwin/fhandler/console.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler/console.cc b/winsup/cygwin/fhandler/console.cc index 0660ee3..c6c2614 100644 --- a/winsup/cygwin/fhandler/console.cc +++ b/winsup/cygwin/fhandler/console.cc @@ -4024,6 +4024,11 @@ fhandler_console::write (const void *vsrc, size_t len) case gotcommand: if (con.nargs < MAXARGS) con.nargs++; + if (*src == '%' && con.nargs == 1 && con.args[0] == 0) + { /* Ignore intermediate byte in CSI sequence used by vim. */ + src++; + break; + } char_command (*src++); con.state = normal; wpbuf.empty(); |