fix: window picker can't be correctly rendered when cmdheight = 0 (#1349)
Co-authored-by: litao <litao912002@hotmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user