From: Bram Moolenaar Date: Thu, 20 Apr 2017 17:44:09 +0000 (+0200) Subject: patch 8.0.0569: bracketed paste is still enabled in a shell command X-Git-Tag: v8.0.0569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cf09b5dcb9a04b8e4f5e6cf3b14a787758e1a2;p=thirdparty%2Fvim.git patch 8.0.0569: bracketed paste is still enabled in a shell command Problem: Bracketed paste is still enabled when executing a shell command. (Michael Smith) Solution: Disable brackted paste when going into cooked mode. (closes #1638) --- diff --git a/src/term.c b/src/term.c index 85b1ff515c..d23d8cba61 100644 --- a/src/term.c +++ b/src/term.c @@ -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 diff --git a/src/version.c b/src/version.c index b9790d41e3..a9327b0d12 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 569, /**/ 568, /**/