fix: "color" for items with documentation but a hex value which cannot be parsed
This commit is contained in:
parent
662b6d3e53
commit
fc54f2e51a
1 changed files with 2 additions and 1 deletions
|
@ -113,7 +113,8 @@ impl menu::Item for CompletionItem {
|
|||
|
||||
match maybe_color {
|
||||
Some(color) => Span::styled("■", Style::default().fg(color)),
|
||||
None => Span::raw(""),
|
||||
// there is documentation but it doesn't conform to the format to parse the hex color
|
||||
None => Span::raw("color"),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue