mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user