aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/options_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-11-29 23:48:14 -0800
committerGitHub <noreply@github.com>2019-11-29 23:48:14 -0800
commitf6e7857c54a015cdfac9ce65ec0b65d65d590aeb (patch)
tree88aec7943072ce57536f4a7b26af627601d29817 /test/functional/ui/options_spec.lua
parent1f684cf80a0026848f5d64794dfca05654a9f66a (diff)
downloadrneovim-f6e7857c54a015cdfac9ce65ec0b65d65d590aeb.tar.gz
rneovim-f6e7857c54a015cdfac9ce65ec0b65d65d590aeb.tar.bz2
rneovim-f6e7857c54a015cdfac9ce65ec0b65d65d590aeb.zip
floatwin: show error if window is closed immediately #11476
Autocmds may close window while it is being entered, then win_set_minimal_style(wp) operates on an invalid pointer. We could silently ignore this instead, but it is unlikely to be intentional, so it is more useful to show an error. fix #11383
Diffstat (limited to 'test/functional/ui/options_spec.lua')
-rw-r--r--test/functional/ui/options_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua
index 31007b92b1..581e196bbb 100644
--- a/test/functional/ui/options_spec.lua
+++ b/test/functional/ui/options_spec.lua
@@ -52,10 +52,10 @@ describe('UI receives option updates', function()
local evs = {}
screen = Screen.new(20,5)
-- Override mouse_on/mouse_off handlers.
- function screen._handle_mouse_on()
+ function screen:_handle_mouse_on()
table.insert(evs, 'mouse_on')
end
- function screen._handle_mouse_off()
+ function screen:_handle_mouse_off()
table.insert(evs, 'mouse_off')
end
screen:attach()