Skip to content

Commit 2f1011b

Browse files
committed
fix: add missing keymap description + handle nil descriptions in help window
1 parent d572e6b commit 2f1011b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/grapple/help_content.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function HelpContent:entities()
7676
---@class grapple.help_content.entity
7777
local entity = {
7878
lhs = keymap.lhs,
79-
desc = keymap.desc,
79+
desc = keymap.desc or "",
8080
padding = 0,
8181
}
8282

lua/grapple/settings.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ local DEFAULT_SETTINGS = {
330330
local entry = window:current_entry()
331331
local id = entry.data.id
332332
window:perform_retain(ContainerActions.unload, { id = id })
333-
end)
333+
end, { desc = "Unload scope" })
334334

335335
-- Reset
336336
window:map("n", "X", function()

0 commit comments

Comments
 (0)