neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a5d69326860fa28a4dd4921e4bdb662d2dcd0355
parent 566e8c66f93d523b8768e99df2d014a33fdbe62d
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 16 Sep 2025 06:06:02 +0800

fix(paste): don't use :echo immediately before :redraw (#35773)

- If tick == 0 at the last chunk, the first :echo will print an empty
  string, which isn't really helpful, and may cause :redraw to move
  cursor to the message area for 'showmode'.
- If tick > 0 at the last chunk, there'll be another :echo that prints
  an empty string immediately after the :redraw.
Diffstat:
Mruntime/lua/vim/_editor.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua @@ -250,7 +250,7 @@ do return false end undo_started = true - if phase ~= -1 and (now - tdots >= 100) then + if not is_last_chunk and (now - tdots >= 100) then local dots = ('.'):rep(tick % 4) tdots = now tick = tick + 1