mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
fix(lua): make ui_attach()/ui_detach() take effect immediately (#20037)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user