Skip to content

Commit

Permalink
fix: dont pass zero counts
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 29, 2021
1 parent 4feb319 commit 0c3cfb0
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 @@ -146,7 +146,7 @@ function M.execute(prefix, mode, buf)

-- fix <lt>
prefix = prefix:gsub("<lt>", "<")
if M.count then prefix = M.count .. prefix end
if M.count and M.count ~= 0 then prefix = M.count .. prefix end

-- feed the keys with remap
vim.api.nvim_feedkeys(prefix, "m", true)
Expand Down

0 comments on commit 0c3cfb0

Please sign in to comment.