refactor: use vim.ui.input for y/n selections
also add clear_prompt again. fixes #1441
This commit is contained in:
@@ -112,9 +112,7 @@ local function pick_window()
|
||||
end
|
||||
local _, resp = pcall(get_user_input_char)
|
||||
resp = (resp or ""):upper()
|
||||
if vim.opt.cmdheight._value ~= 0 then
|
||||
vim.api.nvim_command "normal! :"
|
||||
end
|
||||
utils.clear_prompt()
|
||||
|
||||
-- Restore window options
|
||||
for _, id in ipairs(selectable) do
|
||||
|
||||
Reference in New Issue
Block a user