fix: window picker can't be correctly rendered when cmdheight = 0 (#1349)

Co-authored-by: litao <litao912002@hotmail.com>
This commit is contained in:
litao91
2022-06-20 14:29:47 +08:00
committed by GitHub
parent 104292c8f9
commit 79258f1d67

View File

@@ -99,7 +99,9 @@ local function pick_window()
end
vim.cmd "redraw"
print "Pick window: "
if vim.opt.cmdheight._value ~= 0 then
print "Pick window: "
end
local _, resp = pcall(utils.get_user_input_char)
resp = (resp or ""):upper()
utils.clear_prompt()