Skip to content

Commit

Permalink
fix: fix issue when cmdheight=0 #301 (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyaowong authored Sep 3, 2022
1 parent 1d449d4 commit 9cd09ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/which-key/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function M.on_close()
end

function M.hide()
vim.api.nvim_echo({ { "" } }, false, {})
vim.cmd [[echon ""]]
M.hide_cursor()
if M.buf and vim.api.nvim_buf_is_valid(M.buf) then
vim.api.nvim_buf_delete(M.buf, { force = true })
Expand Down

0 comments on commit 9cd09ca

Please sign in to comment.