Mercurial > vim
diff src/term.c @ 11368:253e66dd1428 v8.0.0569
patch 8.0.0569: bracketed paste is still enabled in a shell command
commit https://github.com/vim/vim/commit/62cf09b5dcb9a04b8e4f5e6cf3b14a787758e1a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 20 19:44:09 2017 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 20 Apr 2017 19:45:04 +0200 |
parents | 0c091a7c588c |
children | ec47e673a021 |
line wrap: on
line diff
--- 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