From a61d8b615cf99e317fd78a5c9b39aed90908fc51 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 20 Dec 2023 05:27:18 +0800 Subject: vim-patch:9.0.2178: reg_executing() wrong for :normal with range (#26660) Problem: reg_executing() returns wrong result in :normal with range when 'showcmd' is set (after 8.2.4705). Solution: Reset "pending_end_reg_executing" when executing a register. closes: vim/vim#13707 https://github.com/vim/vim/commit/615202bd0ebc1d8e3532f24b9b7232c2fd86b181 --- src/nvim/ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 6f5f209a71..ece7ccc960 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -1160,6 +1160,7 @@ int do_execreg(int regname, int colon, int addcr, int silent) } } reg_executing = regname == 0 ? '"' : regname; // disable the 'q' command + pending_end_reg_executing = false; } return retval; } -- cgit