summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-14 19:17:53 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-14 19:17:53 +0000
commite4835bf34001471a102528659af009bc46361141 (patch)
tree3031d8fbf6ec1447b52dd20827ae4b89a814f2a0 /src/screen.c
parent0e76714e901d179a2f020815f07fb375274b5404 (diff)
downloadvim-git-e4835bf34001471a102528659af009bc46361141.tar.gz
patch 8.2.4382: a custom 'tabline' may cause Esc to work like Enterv8.2.4382
Problem: A custom 'tabline' may cause Esc to work like Enter on the command line when the popup menu is displayed. Solution: Save and restore KeyTyped. (closes #9776)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index adcc4b5ba..9010090d7 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1235,6 +1235,7 @@ win_redr_custom(
int use_sandbox = FALSE;
win_T *ewp;
int p_crb_save;
+ int save_KeyTyped = KeyTyped;
// There is a tiny chance that this gets called recursively: When
// redrawing a status line triggers redrawing the ruler or tabline.
@@ -1394,6 +1395,9 @@ win_redr_custom(
theend:
entered = FALSE;
+
+ // A user function may reset KeyTyped, restore it.
+ KeyTyped = save_KeyTyped;
}
#endif // FEAT_STL_OPT