]> granicus.if.org Git - vim/commitdiff
patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong v8.2.4392
authorBram Moolenaar <Bram@vim.org>
Tue, 15 Feb 2022 17:17:18 +0000 (17:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 15 Feb 2022 17:17:18 +0000 (17:17 +0000)
Problem:    MS-Windows with VIMDLL: Escaping CSI is wrong.
Solution:   Put back #ifdef. (Ken Takata, closes #9769)

src/getchar.c
src/version.c

index 8513679de810b087ff48d1931845560f14f1b3e9..104219236d93595b0ea44d712297715305a78676 100644 (file)
@@ -3671,7 +3671,9 @@ fix_input_buffer(char_u *buf, int len)
            p += 2;
            i -= 2;
        }
-       // When the GUI is not used CSI needs to be escaped.
+# ifndef MSWIN
+       // When not on MS-Windows and the GUI is not used CSI needs to be
+       // escaped.
        else if (!gui.in_use && p[0] == CSI)
        {
            mch_memmove(p + 3, p + 1, (size_t)i);
@@ -3680,6 +3682,7 @@ fix_input_buffer(char_u *buf, int len)
            *p = (int)KE_CSI;
            len += 2;
        }
+# endif
        else
 #endif
        if (p[0] == NUL || (p[0] == K_SPECIAL
index e5bbd10be4a39b6b98707d99116c217c817c4d02..e4bee845838a1dfa5bd701e737bf4f5cfa2397d7 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4392,
 /**/
     4391,
 /**/