vim-patch:8.1.0822: peeking and flushing output slows down execution (#25629)

Problem:    Peeking and flushing output slows down execution.
Solution:   Do not update the mode message when global_busy is set.  Do not
            flush when only peeking for a character. (Ken Takata)

cb574f4154
This commit is contained in:
zeertzjq
2023-10-14 09:58:30 +08:00
committed by GitHub
parent 9f32deba56
commit bf70a33f5e
10 changed files with 64 additions and 45 deletions

View File

@@ -169,10 +169,10 @@ describe("folded lines", function()
end
-- CursorLine is applied correctly with screenrow motions #22232
feed("jgk")
screen:expect_unchanged(true)
screen:expect_unchanged()
-- CursorLine is applied correctly when closing a fold when cursor is not at fold start
feed("zo4Gzc")
screen:expect_unchanged(true)
screen:expect_unchanged()
command("set cursorlineopt=line")
if multigrid then
screen:expect([[