Patch 8.2.2109
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.
Files: src/os_unix.c
*** ../vim-8.2.2108/src/os_unix.c 2020-10-24 20:49:37.498683038 +0200
--- src/os_unix.c 2020-12-08 19:09:43.111644616 +0100
***************
*** 5273,5280 ****
{
long delay_msec = 1;
! out_str(T_CTE); // possibly disables modifyOtherKeys, so that
! // the system can recognize CTRL-C
/*
* Similar to the loop above, but only handle X events, no
--- 5273,5282 ----
{
long delay_msec = 1;
! if (tmode == TMODE_RAW)
! // possibly disables modifyOtherKeys, so that the system
! // can recognize CTRL-C
! out_str(T_CTE);
/*
* Similar to the loop above, but only handle X events, no
***************
*** 5316,5322 ****
delay_msec = 10;
}
! out_str(T_CTI); // possibly enables modifyOtherKeys again
}
# endif
--- 5318,5326 ----
delay_msec = 10;
}
! if (tmode == TMODE_RAW)
! // possibly enables modifyOtherKeys again
! out_str(T_CTI);
}
# endif
*** ../vim-8.2.2108/src/version.c 2020-12-08 11:29:36.579249992 +0100
--- src/version.c 2020-12-08 19:10:14.687552335 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2109,
/**/
--
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke
Any sufficiently advanced bug is indistinguishable from a feature.
Rich Kulawiec
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///