Skip to content

Commit 386b43e

Browse files
committed
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)
1 parent 999dc14 commit 386b43e

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/getchar.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,9 +1453,9 @@ openscript(
14531453
oldcurscript = curscript;
14541454
do
14551455
{
1456-
update_topline_cursor(); /* update cursor position and topline */
1457-
normal_cmd(&oa, FALSE); /* execute one command */
1458-
vpeekc(); /* check for end of file */
1456+
update_topline_cursor(); // update cursor position and topline
1457+
normal_cmd(&oa, FALSE); // execute one command
1458+
vpeekc(); // check for end of file
14591459
}
14601460
while (scriptin[oldcurscript] != NULL);
14611461

@@ -1753,7 +1753,11 @@ vgetc(void)
17531753
buf[i] = vgetorpeek(TRUE);
17541754
if (buf[i] == K_SPECIAL
17551755
#ifdef FEAT_GUI
1756-
|| (gui.in_use && buf[i] == CSI)
1756+
|| (
1757+
# ifdef VIMDLL
1758+
gui.in_use &&
1759+
# endif
1760+
buf[i] == CSI)
17571761
#endif
17581762
)
17591763
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ static char *(features[]) =
767767

768768
static int included_patches[] =
769769
{ /* Add new patch number below this line */
770+
/**/
771+
1358,
770772
/**/
771773
1357,
772774
/**/

0 commit comments

Comments
 (0)