Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lua/minibuffer/internal/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ local function enrich_items(items)
local word = item[1]
if word and word ~= "" and (item[4] == nil or item[4] == "") then
local command = s.commands[word]
if command and command.definition then
item[4] = command.definition
if command then
if command.definition and command.definition ~= "" then
item[4] = command.definition
elseif command.desc and command.desc ~= "" then
item[4] = command.desc
end
end
end
end
Expand Down
Loading