Skip to content

Commit 62cf09b

Browse files
committed
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)
1 parent 60402d6 commit 62cf09b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/term.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3181,15 +3181,19 @@ settmode(int tmode)
31813181
#endif
31823182
#ifdef FEAT_MOUSE_TTY
31833183
if (tmode != TMODE_RAW)
3184-
mch_setmouse(FALSE); /* switch mouse off */
3184+
mch_setmouse(FALSE); /* switch mouse off */
31853185
#endif
3186+
if (tmode != TMODE_RAW)
3187+
out_str(T_BD); /* disable bracketed paste mode */
31863188
out_flush();
3187-
mch_settmode(tmode); /* machine specific function */
3189+
mch_settmode(tmode); /* machine specific function */
31883190
cur_tmode = tmode;
31893191
#ifdef FEAT_MOUSE
31903192
if (tmode == TMODE_RAW)
3191-
setmouse(); /* may switch mouse on */
3193+
setmouse(); /* may switch mouse on */
31923194
#endif
3195+
if (tmode == TMODE_RAW)
3196+
out_str(T_BE); /* enable bracketed paste mode */
31933197
out_flush();
31943198
}
31953199
#ifdef FEAT_TERMRESPONSE

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
569,
767769
/**/
768770
568,
769771
/**/

0 commit comments

Comments
 (0)