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

615202bd0e
This commit is contained in:
zeertzjq
2023-12-20 05:27:18 +08:00
committed by GitHub
parent 49efdf8413
commit a61d8b615c
2 changed files with 18 additions and 0 deletions

View File

@@ -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;
}