mirror of
https://github.com/neovim/neovim.git
synced 2026-04-30 19:24:09 +00:00
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:
@@ -69,15 +69,18 @@ describe('UI receives option updates', function()
|
||||
eq({'mouse_on'}, evs)
|
||||
end)
|
||||
command("set mouse=")
|
||||
screen:expect(function()
|
||||
eq({'mouse_on', 'mouse_off'}, evs)
|
||||
end)
|
||||
command("set mouse&")
|
||||
screen:expect(function()
|
||||
eq({'mouse_on','mouse_off', 'mouse_on'}, evs)
|
||||
eq({'mouse_on', 'mouse_off', 'mouse_on'}, evs)
|
||||
end)
|
||||
screen:detach()
|
||||
eq({'mouse_on','mouse_off', 'mouse_on'}, evs)
|
||||
eq({'mouse_on', 'mouse_off', 'mouse_on'}, evs)
|
||||
screen:attach()
|
||||
screen:expect(function()
|
||||
eq({'mouse_on','mouse_off','mouse_on', 'mouse_on'}, evs)
|
||||
eq({'mouse_on', 'mouse_off', 'mouse_on', 'mouse_on'}, evs)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user