Problem: Command line executed when typing Esc in the GUI.
Solution: Move saving/restoring KeyTyped to build_stl_str_hl().
(closes #9783)
stl_hlrec_T *sp;
int save_must_redraw = must_redraw;
int save_redr_type = curwin->w_redr_type;
+ int save_KeyTyped = KeyTyped;
if (stl_items == NULL)
{
curwin->w_redr_type = save_redr_type;
}
+ // A user function may reset KeyTyped, restore it.
+ KeyTyped = save_KeyTyped;
+
return width;
}
#endif // FEAT_STL_OPT
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.
theend:
entered = FALSE;
-
- // A user function may reset KeyTyped, restore it.
- KeyTyped = save_KeyTyped;
}
#endif // FEAT_STL_OPT
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4391,
/**/
4390,
/**/