Skip to content

Commit 79258f1

Browse files
authored
fix: window picker can't be correctly rendered when cmdheight = 0 (#1349)
Co-authored-by: litao <litao912002@hotmail.com>
1 parent 104292c commit 79258f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/nvim-tree/actions/open-file.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ local function pick_window()
9999
end
100100

101101
vim.cmd "redraw"
102-
print "Pick window: "
102+
if vim.opt.cmdheight._value ~= 0 then
103+
print "Pick window: "
104+
end
103105
local _, resp = pcall(utils.get_user_input_char)
104106
resp = (resp or ""):upper()
105107
utils.clear_prompt()

0 commit comments

Comments
 (0)