# HG changeset patch # User Bram Moolenaar # Date 1558296006 -7200 # Node ID 329e28ed10fd191eb08f6b42ae06b80e498b6761 # Parent 58053184e2990d2ddb86c6182c740a44ade53c3b patch 8.1.1358: cannot enter character with a CSI byte commit https://github.com/vim/vim/commit/386b43e59498cc7b52a60f09f74bdb44df99386c Author: Bram Moolenaar Date: Sun May 19 21:57:11 2019 +0200 patch 8.1.1358: cannot enter character with a CSI byte Problem: Cannot enter character with a CSI byte. Solution: Only check "gui.in_use" when VIMDLL is defined. (Ken Takata, closes #4396) diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -1453,9 +1453,9 @@ openscript( oldcurscript = curscript; do { - update_topline_cursor(); /* update cursor position and topline */ - normal_cmd(&oa, FALSE); /* execute one command */ - vpeekc(); /* check for end of file */ + update_topline_cursor(); // update cursor position and topline + normal_cmd(&oa, FALSE); // execute one command + vpeekc(); // check for end of file } while (scriptin[oldcurscript] != NULL); @@ -1753,7 +1753,11 @@ vgetc(void) buf[i] = vgetorpeek(TRUE); if (buf[i] == K_SPECIAL #ifdef FEAT_GUI - || (gui.in_use && buf[i] == CSI) + || ( +# ifdef VIMDLL + gui.in_use && +# endif + buf[i] == CSI) #endif ) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1358, +/**/ 1357, /**/ 1356,