1
0
forked from aniani/vim

patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmd

Problem:    ModifyOtherKeys active when using a shell command in autocmd.
Solution:   Output T_CTE when going to cooked mode. (closes 5617)
This commit is contained in:
Bram Moolenaar
2020-05-16 15:05:04 +02:00
parent e882f7a73c
commit 645e3fe3fe
2 changed files with 8 additions and 0 deletions

View File

@@ -3474,10 +3474,16 @@ settmode(int tmode)
if (termcap_active)
{
if (tmode != TMODE_RAW)
{
out_str(T_BD); // disable bracketed paste mode
out_str(T_CTE); // possibly disables modifyOtherKeys
}
else
{
out_str(T_BE); // enable bracketed paste mode (should
// be before mch_settmode().
out_str(T_CTI); // possibly enables modifyOtherKeys
}
}
out_flush();
mch_settmode(tmode); // machine specific function

View File

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