1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar 2019-05-19 21:57:11 +02:00
parent 999dc14644
commit 386b43e594
2 changed files with 10 additions and 4 deletions

View File

@ -1453,9 +1453,9 @@ openscript(
oldcurscript = curscript; oldcurscript = curscript;
do do
{ {
update_topline_cursor(); /* update cursor position and topline */ update_topline_cursor(); // update cursor position and topline
normal_cmd(&oa, FALSE); /* execute one command */ normal_cmd(&oa, FALSE); // execute one command
vpeekc(); /* check for end of file */ vpeekc(); // check for end of file
} }
while (scriptin[oldcurscript] != NULL); while (scriptin[oldcurscript] != NULL);
@ -1753,7 +1753,11 @@ vgetc(void)
buf[i] = vgetorpeek(TRUE); buf[i] = vgetorpeek(TRUE);
if (buf[i] == K_SPECIAL if (buf[i] == K_SPECIAL
#ifdef FEAT_GUI #ifdef FEAT_GUI
|| (gui.in_use && buf[i] == CSI) || (
# ifdef VIMDLL
gui.in_use &&
# endif
buf[i] == CSI)
#endif #endif
) )
{ {

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1358,
/**/ /**/
1357, 1357,
/**/ /**/