diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-01 16:37:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 16:37:29 +0800 |
commit | db2e5f46f5aa5a6300395eaa9c4923835683c770 (patch) | |
tree | 44d9b88812611c0c6103b5fe81c8679a4b365d73 /test | |
parent | 48ca1d4ce8c0a142e90e06b3cd37f1315c5eb715 (diff) | |
download | rneovim-db2e5f46f5aa5a6300395eaa9c4923835683c770.tar.gz rneovim-db2e5f46f5aa5a6300395eaa9c4923835683c770.tar.bz2 rneovim-db2e5f46f5aa5a6300395eaa9c4923835683c770.zip |
fix(lua): make ui_attach()/ui_detach() take effect immediately (#20037)
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/lua/ui_event_spec.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua index 05322a0fdb..294222ad13 100644 --- a/test/functional/lua/ui_event_spec.lua +++ b/test/functional/lua/ui_event_spec.lua @@ -88,10 +88,12 @@ describe('vim.ui_attach', function() { "popupmenu_hide" }; } - -- ui_detach stops events, and reenables builtin pum - exec_lua [[ vim.ui_detach(ns) ]] + -- vim.ui_detach() stops events, and reenables builtin pum immediately + exec_lua [[ + vim.ui_detach(ns) + vim.fn.complete(1, {'food', 'foobar', 'foo'}) + ]] - funcs.complete(1, {'food', 'foobar', 'foo'}) screen:expect{grid=[[ food^ | {3:food }{1: }| @@ -102,6 +104,5 @@ describe('vim.ui_attach', function() expect_events { } - end) end) |