Skip to content

Commit

Permalink
fix: manual command now uses proper escaping for prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 30, 2021
1 parent 2473329 commit 334fcca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/which-key/init.lua
Expand Up @@ -30,6 +30,7 @@ function M.show_command(keys, mode)
keys = (keys == "\"\"" or keys == "''") and "" or keys
mode = (mode == "\"\"" or mode == "''") and "" or mode
mode = mode or "n"
keys = Util.t(keys)
if not Util.check_mode(mode) then
Util.error(
"Invalid mode passed to :WhichKey (Dont create any keymappings to trigger WhichKey. WhichKey does this automaytically)")
Expand Down

0 comments on commit 334fcca

Please sign in to comment.