diff src/term.c @ 20425:426ef48be465 v8.2.0767

patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmd Commit: https://github.com/vim/vim/commit/645e3fe3fe2cfaf0615428207bbacc2963852eba Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 16 15:05:04 2020 +0200 patch 8.2.0767: modifyOtherKeys active when using a shell command in autocmd Problem: ModifyOtherKeys active when using a shell command in autocmd. Solution: Output T_CTE when going to cooked mode. (closes 5617)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 May 2020 15:15:04 +0200
parents 0ab9d7469ce7
children 3bb4dea4a164
line wrap: on
line diff
--- 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