From 79258f1d670277016523e13c0a88daa25070879f Mon Sep 17 00:00:00 2001 From: litao91 Date: Mon, 20 Jun 2022 14:29:47 +0800 Subject: [PATCH] fix: window picker can't be correctly rendered when cmdheight = 0 (#1349) Co-authored-by: litao --- lua/nvim-tree/actions/open-file.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/nvim-tree/actions/open-file.lua b/lua/nvim-tree/actions/open-file.lua index 715d8a54..6831407c 100644 --- a/lua/nvim-tree/actions/open-file.lua +++ b/lua/nvim-tree/actions/open-file.lua @@ -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()