From 64d95cfc56406858a05032c6a134f1e08fe2ca78 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 15 Feb 2022 17:17:18 +0000 Subject: 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 #9769) --- src/getchar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index 8513679de8..104219236d 100644 --- 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 -- cgit v1.2.3