Use nvim_win_hide instead o nvim_win_close for supporting custom menu on cmdwin

This commit is contained in:
hrsh7th
2021-10-10 12:23:39 +09:00
parent babb8023c6
commit 370e6ff076
3 changed files with 6 additions and 12 deletions

View File

@@ -15,12 +15,6 @@ misc.concat = function(list1, list2)
return new_list
end
---Return is cmdwin or not.
---@return boolean
misc.is_cmdwin = function()
return vim.fn.getcmdwintype() ~= ''
end
---Get cursor before line
---@return string
misc.get_cursor_before_line = function()