diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-04-20 19:44:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-04-20 19:44:09 +0200 |
commit | 62cf09b5dcb9a04b8e4f5e6cf3b14a787758e1a2 (patch) | |
tree | ff73a42ba45d55a7e12669d949b2fe9859529b04 | |
parent | 60402d68da09997cacdeec71fd22c9344f8f40d5 (diff) | |
download | vim-git-62cf09b5dcb9a04b8e4f5e6cf3b14a787758e1a2.tar.gz |
patch 8.0.0569: bracketed paste is still enabled in a shell commandv8.0.0569
Problem: Bracketed paste is still enabled when executing a shell command.
(Michael Smith)
Solution: Disable brackted paste when going into cooked mode. (closes #1638)
-rw-r--r-- | src/term.c | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c index 85b1ff515..d23d8cba6 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 b9790d41e..a9327b0d1 100644 --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 569, +/**/ 568, /**/ 567, |