patch 8.1.0851: feedkeys() with "L" does not work properly
Problem: feedkeys() with "L" does not work properly.
Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi,
closes #3885)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index c7ba6f3..374e701 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3705,15 +3705,18 @@
#endif
}
else
+ {
ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE),
insert ? 0 : typebuf.tb_len, !typed, FALSE);
- vim_free(keys_esc);
- if (vgetc_busy
+ if (vgetc_busy
#ifdef FEAT_TIMERS
- || timer_busy
+ || timer_busy
#endif
- )
- typebuf_was_filled = TRUE;
+ )
+ typebuf_was_filled = TRUE;
+ }
+ vim_free(keys_esc);
+
if (execute)
{
int save_msg_scroll = msg_scroll;