Skip to content

Commit 8c17024

Browse files
committed
fix(help_panel): Ensure correct structure for mapping data (fixes #352)
1 parent f9ddbe7 commit 8c17024

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/diffview/ui/panels/help_panel.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ function HelpPanel:update_components()
135135
end
136136
end
137137

138-
return utils.vec_join(v, desc)
138+
local ret = utils.tbl_clone(v)
139+
ret[5] = desc
140+
141+
return ret
139142
end)
140143

141144
if #maps == 0 then goto continue end

0 commit comments

Comments
 (0)