Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
11367:7a5c99db288b | 11368:253e66dd1428 |
---|---|
3179 check_for_codes_from_term(); | 3179 check_for_codes_from_term(); |
3180 } | 3180 } |
3181 #endif | 3181 #endif |
3182 #ifdef FEAT_MOUSE_TTY | 3182 #ifdef FEAT_MOUSE_TTY |
3183 if (tmode != TMODE_RAW) | 3183 if (tmode != TMODE_RAW) |
3184 mch_setmouse(FALSE); /* switch mouse off */ | 3184 mch_setmouse(FALSE); /* switch mouse off */ |
3185 #endif | 3185 #endif |
3186 if (tmode != TMODE_RAW) | |
3187 out_str(T_BD); /* disable bracketed paste mode */ | |
3186 out_flush(); | 3188 out_flush(); |
3187 mch_settmode(tmode); /* machine specific function */ | 3189 mch_settmode(tmode); /* machine specific function */ |
3188 cur_tmode = tmode; | 3190 cur_tmode = tmode; |
3189 #ifdef FEAT_MOUSE | 3191 #ifdef FEAT_MOUSE |
3190 if (tmode == TMODE_RAW) | 3192 if (tmode == TMODE_RAW) |
3191 setmouse(); /* may switch mouse on */ | 3193 setmouse(); /* may switch mouse on */ |
3192 #endif | 3194 #endif |
3195 if (tmode == TMODE_RAW) | |
3196 out_str(T_BE); /* enable bracketed paste mode */ | |
3193 out_flush(); | 3197 out_flush(); |
3194 } | 3198 } |
3195 #ifdef FEAT_TERMRESPONSE | 3199 #ifdef FEAT_TERMRESPONSE |
3196 may_req_termresponse(); | 3200 may_req_termresponse(); |
3197 #endif | 3201 #endif |