# HG changeset patch # User Bram Moolenaar # Date 1644946203 -3600 # Node ID 4cc78957f550a72b5ccf222d1ff6a059a83814b1 # Parent 9c5bc8cb5e288b250d3bcd367e7b302c6ec75f24 patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong Commit: https://github.com/vim/vim/commit/64d95cfc56406858a05032c6a134f1e08fe2ca78 Author: Bram Moolenaar Date: Tue Feb 15 17:17:18 2022 +0000 patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong Problem: MS-Windows with VIMDLL: Escaping CSI is wrong. Solution: Put back #ifdef. (Ken Takata, closes https://github.com/vim/vim/issues/9769) diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4392, +/**/ 4391, /**/ 4390,