diff src/drawscreen.c @ 27712:9c96612730a0 v8.2.4382

patch 8.2.4382: a custom 'tabline' may cause Esc to work like Enter Commit: https://github.com/vim/vim/commit/e4835bf34001471a102528659af009bc46361141 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 14 19:17:53 2022 +0000 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)
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Feb 2022 20:30:02 +0100
parents 1bdb36828dcc
children c1d1639b52dd
line wrap: on
line diff
--- 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