Skip to content

Commit

Permalink
fix: handle topics without desc
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Feb 14, 2023
1 parent b00353f commit 9a6b4fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/autocomplete/zsh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,11 @@ _${this.config.bin}
return 0
})
.map(t => {
const description = t.description ? sanitizeSummary(t.description) : `${t.name.replace(/:/g, ' ')} commands`

return {
name: t.name,
description: sanitizeSummary(t.description),
description,
}
})

Expand Down

0 comments on commit 9a6b4fb

Please sign in to comment.