Skip to content

Commit

Permalink
fix: properly handle <lt> when executing keys (fixes #16 again)
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 29, 2021
1 parent 6cf68b4 commit 8500ebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/which-key/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ function M.execute(prefix, mode, buf)
unhook(Keys.get_tree(mode).tree:path(prefix))
unhook(buf and Keys.get_tree(mode, buf).tree:path(prefix) or {})

-- fix <lt>
prefix = prefix:gsub("<lt>", "<")

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

Expand Down

0 comments on commit 8500ebf

Please sign in to comment.