Skip to content

Commit 8a3da6a

Browse files
committed
patch 8.2.2109: "vim -" does not work well when modifyOtherKeys is enabled
Problem: "vim -" does not work well when modifyOtherKeys is enabled and a shell command is executed on startup. Solution: Only change modifyOtherKeys when executing a shell command in raw mode.
1 parent 083966f commit 8a3da6a

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/os_unix.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5273,8 +5273,10 @@ mch_call_shell_fork(
52735273
{
52745274
long delay_msec = 1;
52755275

5276-
out_str(T_CTE); // possibly disables modifyOtherKeys, so that
5277-
// the system can recognize CTRL-C
5276+
if (tmode == TMODE_RAW)
5277+
// possibly disables modifyOtherKeys, so that the system
5278+
// can recognize CTRL-C
5279+
out_str(T_CTE);
52785280

52795281
/*
52805282
* Similar to the loop above, but only handle X events, no
@@ -5316,7 +5318,9 @@ mch_call_shell_fork(
53165318
delay_msec = 10;
53175319
}
53185320

5319-
out_str(T_CTI); // possibly enables modifyOtherKeys again
5321+
if (tmode == TMODE_RAW)
5322+
// possibly enables modifyOtherKeys again
5323+
out_str(T_CTI);
53205324
}
53215325
# endif
53225326

src/version.c

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

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2109,
753755
/**/
754756
2108,
755757
/**/

0 commit comments

Comments
 (0)