From fc54f2e51a0a2100687ac246d073c4c1cf7b66ef Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:30:49 +0000 Subject: [PATCH] fix: "color" for items with documentation but a hex value which cannot be parsed --- helix-term/src/ui/completion.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index 12dbca19..8b341afb 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -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"), } }) }