Skip to content

Commit

Permalink
fix(view): fix epanded keys. Fixes #795
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 24, 2024
1 parent 058486e commit f5e0cd5
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 @@ -185,7 +185,7 @@ function M.item(node, opts)
local icon, icon_hl = M.icon(node)

local raw_key = node.key
if opts.parent and opts.parent ~= node and opts.parent.keys:find(node.keys, 1, true) == 1 then
if opts.parent and opts.parent ~= node and node.keys:find(opts.parent.keys, 1, true) == 1 then
raw_key = node.keys:sub(opts.parent.keys:len() + 1)
end

Expand Down

0 comments on commit f5e0cd5

Please sign in to comment.