Mercurial > vim
changeset 27732:4cc78957f550 v8.2.4392
patch 8.2.4392: MS-Windows with VIMDLL: Escaping CSI is wrong
Commit: https://github.com/vim/vim/commit/64d95cfc56406858a05032c6a134f1e08fe2ca78
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Feb 2022 18:30:03 +0100 |
parents | 9c5bc8cb5e28 |
children | 06f4629cb153 |
files | src/getchar.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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