aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-03 22:58:09 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-01-05 10:35:49 -0500
commit3a3fb0860248b42e05de6591d4b7727453efdef2 (patch)
tree054947601b316cb23a2e458693eeeb68481554e7 /src/nvim/api/vim.c
parente7d49dc909623c0618b3e5cfaecb09fb0b38e1fa (diff)
downloadrneovim-3a3fb0860248b42e05de6591d4b7727453efdef2.tar.gz
rneovim-3a3fb0860248b42e05de6591d4b7727453efdef2.tar.bz2
rneovim-3a3fb0860248b42e05de6591d4b7727453efdef2.zip
vim-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 vim/vim#3885) https://github.com/vim/vim/commit/8d4ce56a19ed14d13332f94ad592fff2d9a715d5
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index a649eab97c..d35d04cdb3 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -241,15 +241,15 @@ void nvim_feedkeys(String keys, String mode, Boolean escape_csi)
keys_esc = keys.data;
}
ins_typebuf((char_u *)keys_esc, (remap ? REMAP_YES : REMAP_NONE),
- insert ? 0 : typebuf.tb_len, !typed, false);
+ insert ? 0 : typebuf.tb_len, !typed, false);
+ if (vgetc_busy) {
+ typebuf_was_filled = true;
+ }
if (escape_csi) {
xfree(keys_esc);
}
- if (vgetc_busy) {
- typebuf_was_filled = true;
- }
if (execute) {
int save_msg_scroll = msg_scroll;