summaryrefslogtreecommitdiffstats
path: root/src/drawscreen.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/drawscreen.c
parent0e76714e901d179a2f020815f07fb375274b5404 (diff)
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/drawscreen.c')
-rw-r--r--src/drawscreen.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/drawscreen.c b/src/drawscreen.c
index 69f44a9f93..6cae313fa0 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -571,7 +571,6 @@ redraw_custom_statusline(win_T *wp)
{
static int entered = FALSE;
int saved_did_emsg = did_emsg;
- int saved_KeyTyped = KeyTyped;
// When called recursively return. This can happen when the statusline
// contains an expression that triggers a redraw.
@@ -592,9 +591,6 @@ redraw_custom_statusline(win_T *wp)
}
did_emsg |= saved_did_emsg;
entered = FALSE;
-
- // A user function may reset KeyTyped, restore it.
- KeyTyped = saved_KeyTyped;
}
#endif