diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-16 15:05:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-16 15:05:04 +0200 |
commit | 645e3fe3fe2cfaf0615428207bbacc2963852eba (patch) | |
tree | 3a4fc47656b4a950bf70730da395050ad2fbc9e9 | |
parent | e882f7a73c8fa48707de71035eb0a7ccc6ac8548 (diff) | |
download | vim-git-645e3fe3fe2cfaf0615428207bbacc2963852eba.tar.gz |
patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmdv8.2.0767
Problem: ModifyOtherKeys active when using a shell command in autocmd.
Solution: Output T_CTE when going to cooked mode. (closes 5617)
-rw-r--r-- | src/term.c | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index f5d5dbc6f..9803a1bb9 100644 --- a/src/term.c +++ b/src/term.c @@ -3474,10 +3474,16 @@ settmode(int tmode) if (termcap_active) { if (tmode != TMODE_RAW) + { out_str(T_BD); // disable bracketed paste mode + out_str(T_CTE); // possibly disables modifyOtherKeys + } else + { out_str(T_BE); // enable bracketed paste mode (should // be before mch_settmode(). + out_str(T_CTI); // possibly enables modifyOtherKeys + } } out_flush(); mch_settmode(tmode); // machine specific function diff --git a/src/version.c b/src/version.c index f0b0bec19..7d351a06b 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 767, +/**/ 766, /**/ 765, |