mirror of
https://github.com/neovim/neovim.git
synced 2025-12-14 02:22:49 +00:00
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.
(cherry picked from commit a5d6932686)
This commit is contained in:
committed by
github-actions[bot]
parent
91f050bd28
commit
7aea000343
@@ -320,7 +320,7 @@ do
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
undo_started = true
|
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)
|
local dots = ('.'):rep(tick % 4)
|
||||||
tdots = now
|
tdots = now
|
||||||
tick = tick + 1
|
tick = tick + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user