aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-20 18:28:16 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-25 19:25:30 -0500
commit0519a75f6eca1065a4d0184f99c71ae03a99b9b1 (patch)
tree16f28a8a5e9768079cabd97c379d14962232b6d7 /test/functional/ui/screen.lua
parent84faeb07d0018c674c2bc730333fefae6123f366 (diff)
downloadrneovim-0519a75f6eca1065a4d0184f99c71ae03a99b9b1.tar.gz
rneovim-0519a75f6eca1065a4d0184f99c71ae03a99b9b1.tar.bz2
rneovim-0519a75f6eca1065a4d0184f99c71ae03a99b9b1.zip
vim-patch:8.1.0822: peeking and flushing output slows down execution
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) https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 8fa9fcc42f..5104c58796 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -807,7 +807,9 @@ function Screen:_handle_mouse_off()
end
function Screen:_handle_mode_change(mode, idx)
- assert(mode == self._mode_info[idx+1].name)
+ if self._mode_info ~= nil then
+ assert(mode == self._mode_info[idx+1].name)
+ end
self.mode = mode
end