forked from aniani/vim
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)
This commit is contained in:
@@ -3183,6 +3183,8 @@ settmode(int tmode)
|
|||||||
if (tmode != TMODE_RAW)
|
if (tmode != TMODE_RAW)
|
||||||
mch_setmouse(FALSE); /* switch mouse off */
|
mch_setmouse(FALSE); /* switch mouse off */
|
||||||
#endif
|
#endif
|
||||||
|
if (tmode != TMODE_RAW)
|
||||||
|
out_str(T_BD); /* disable bracketed paste mode */
|
||||||
out_flush();
|
out_flush();
|
||||||
mch_settmode(tmode); /* machine specific function */
|
mch_settmode(tmode); /* machine specific function */
|
||||||
cur_tmode = tmode;
|
cur_tmode = tmode;
|
||||||
@@ -3190,6 +3192,8 @@ settmode(int tmode)
|
|||||||
if (tmode == TMODE_RAW)
|
if (tmode == TMODE_RAW)
|
||||||
setmouse(); /* may switch mouse on */
|
setmouse(); /* may switch mouse on */
|
||||||
#endif
|
#endif
|
||||||
|
if (tmode == TMODE_RAW)
|
||||||
|
out_str(T_BE); /* enable bracketed paste mode */
|
||||||
out_flush();
|
out_flush();
|
||||||
}
|
}
|
||||||
#ifdef FEAT_TERMRESPONSE
|
#ifdef FEAT_TERMRESPONSE
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
569,
|
||||||
/**/
|
/**/
|
||||||
568,
|
568,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user