aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/float_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-10-14 09:58:30 +0800
committerGitHub <noreply@github.com>2023-10-14 09:58:30 +0800
commitbf70a33f5e7de0218704126c149db24542e39766 (patch)
tree45190c96e29e86f2770ad1481fbf6d37794e76d4 /test/functional/ui/float_spec.lua
parent9f32deba56ea867a8bb9b9ab7f44bcc5142e8bbc (diff)
downloadrneovim-bf70a33f5e7de0218704126c149db24542e39766.tar.gz
rneovim-bf70a33f5e7de0218704126c149db24542e39766.tar.bz2
rneovim-bf70a33f5e7de0218704126c149db24542e39766.zip
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) https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c
Diffstat (limited to 'test/functional/ui/float_spec.lua')
-rw-r--r--test/functional/ui/float_spec.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/ui/float_spec.lua b/test/functional/ui/float_spec.lua
index 400b2bbae7..9f6b3ca296 100644
--- a/test/functional/ui/float_spec.lua
+++ b/test/functional/ui/float_spec.lua
@@ -9284,9 +9284,11 @@ describe('float window', function()
end
-- Also test with global NormalNC highlight
- meths.set_option_value('winhighlight', '', {win = win})
- command('hi link NormalNC Visual')
- screen:expect_unchanged(true)
+ exec_lua([[
+ vim.api.nvim_set_option_value('winhighlight', '', {win = ...})
+ vim.api.nvim_set_hl(0, 'NormalNC', {link = 'Visual'})
+ ]], win)
+ screen:expect_unchanged()
command('hi clear NormalNC')
command('hi SpecialRegion guifg=Red blend=0')