This commit is contained in:
hrsh7th
2021-08-17 23:13:19 +09:00
parent dbed9f4f58
commit 38612b4aa4

View File

@@ -46,7 +46,8 @@ menu.close = function(self)
vim.schedule(function()
debug.log('menu.close', vim.fn.pumvisible())
if vim.fn.pumvisible() == 1 then
vim.fn.complete(1, {})
-- TODO: Is it safe to call...?
vim.fn.complete(#vim.fn.getline('.') + 1, {})
end
self:unselect()
end)