]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0569: bracketed paste is still enabled in a shell command v8.0.0569
authorBram Moolenaar <Bram@vim.org>
Thu, 20 Apr 2017 17:44:09 +0000 (19:44 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 20 Apr 2017 17:44:09 +0000 (19:44 +0200)
Problem:    Bracketed paste is still enabled when executing a shell command.
            (Michael Smith)
Solution:   Disable brackted paste when going into cooked mode. (closes #1638)

src/term.c
src/version.c

index 85b1ff515cf67419b192e40f1e8ac1703110bdb3..d23d8cba6184863fa7690ff74798296102881c4a 100644 (file)
@@ -3181,15 +3181,19 @@ settmode(int tmode)
 #endif
 #ifdef FEAT_MOUSE_TTY
            if (tmode != TMODE_RAW)
-               mch_setmouse(FALSE);            /* switch mouse off */
+               mch_setmouse(FALSE);    /* switch mouse off */
 #endif
+           if (tmode != TMODE_RAW)
+               out_str(T_BD);          /* disable bracketed paste mode */
            out_flush();
-           mch_settmode(tmode);    /* machine specific function */
+           mch_settmode(tmode);        /* machine specific function */
            cur_tmode = tmode;
 #ifdef FEAT_MOUSE
            if (tmode == TMODE_RAW)
-               setmouse();                     /* may switch mouse on */
+               setmouse();             /* may switch mouse on */
 #endif
+           if (tmode == TMODE_RAW)
+               out_str(T_BE);          /* enable bracketed paste mode */
            out_flush();
        }
 #ifdef FEAT_TERMRESPONSE
index b9790d41e3e23c5fe0eac82718aa091720a659db..a9327b0d12b55e0c54f422bb580bebb23155aab4 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    569,
 /**/
     568,
 /**/