0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-01-30 22:01:40 +01:00
parent 98ad1e17c3
commit 8d4ce56a19
5 changed files with 14 additions and 10 deletions

View File

@@ -3705,15 +3705,18 @@ f_feedkeys(typval_T *argvars, typval_T *rettv UNUSED)
#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;