From e4835bf34001471a102528659af009bc46361141 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 14 Feb 2022 19:17:53 +0000 Subject: patch 8.2.4382: a custom 'tabline' may cause Esc to work like Enter 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) --- src/drawscreen.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/drawscreen.c') 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 -- cgit v1.2.3