Skip to content

Commit 4c2528a

Browse files
authored
fix(help): ignore disabled mappings (#840)
1 parent 92e8b51 commit 4c2528a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/orgmode/objects/help.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,16 @@ function Help._generate_mappings(buffer_type, title)
9696
maps = table.concat(maps, ', ')
9797
end
9898

99+
if type(maps) == 'boolean' and not maps then
100+
goto continue
101+
end
102+
99103
table.insert(
100104
content,
101105
string.format(' `%-12s` - %s', string.gsub(maps, '<prefix>', mappings.prefix), item.description)
102106
)
107+
108+
::continue::
103109
end
104110
table.insert(content, '')
105111
return content

0 commit comments

Comments
 (0)