]> granicus.if.org Git - vim/commitdiff
patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmd v8.2.0767
authorBram Moolenaar <Bram@vim.org>
Sat, 16 May 2020 13:05:04 +0000 (15:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 16 May 2020 13:05:04 +0000 (15:05 +0200)
Problem:    ModifyOtherKeys active when using a shell command in autocmd.
Solution:   Output T_CTE when going to cooked mode. (closes 5617)

src/term.c
src/version.c

index f5d5dbc6f7b70ca67345d125c12298228739dfba..9803a1bb9469f9ef87451524503e49a1a8d720fe 100644 (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
index f0b0bec19c3c5e0a7e40a884bd9aba6b3d53401b..7d351a06b53f2ae41be6d0023f9e736a2a5ed8a8 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    767,
 /**/
     766,
 /**/