summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-15 16:17:44 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-15 16:17:44 +0000
commit0e1f36fc59b589e4755fd9102013971f45222084 (patch)
tree62b2d29afe6d9d62b75b218157d61f5453bc4efe /src/buffer.c
parente88c6b7a5d8b24f8aa9a3e976b78654bae293ae4 (diff)
patch 8.2.4391: command line executed when typing Esc in the GUIv8.2.4391
Problem: Command line executed when typing Esc in the GUI. Solution: Move saving/restoring KeyTyped to build_stl_str_hl(). (closes #9783)
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index b3e2bc3f98..bb9c773679 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4164,6 +4164,7 @@ build_stl_str_hl(
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)
{
@@ -5060,6 +5061,9 @@ build_stl_str_hl(
curwin->w_redr_type = save_redr_type;
}
+ // A user function may reset KeyTyped, restore it.
+ KeyTyped = save_KeyTyped;
+
return width;
}
#endif // FEAT_STL_OPT