fix(#2024): help handles empty mapping description
This commit is contained in:
parent
74959750f7
commit
59bcb01d3b
@ -23,10 +23,9 @@ end
|
|||||||
--- Remove prefix 'nvim-tree: '
|
--- Remove prefix 'nvim-tree: '
|
||||||
--- Hardcoded to keep default_on_attach simple
|
--- Hardcoded to keep default_on_attach simple
|
||||||
--- @param desc string
|
--- @param desc string
|
||||||
--- @return string
|
--- @return string|nil
|
||||||
--- @return number
|
|
||||||
local function tidy_desc(desc)
|
local function tidy_desc(desc)
|
||||||
return desc:gsub("^nvim%-tree: ", "")
|
return desc and desc:gsub("^nvim%-tree: ", "") or ""
|
||||||
end
|
end
|
||||||
|
|
||||||
-- sort lhs roughly as per :help index
|
-- sort lhs roughly as per :help index
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user