edit prediction: Fix width of completion item (#23177)

Release Notes:

- N/A

Co-authored-by: Agus <agus@zed.dev>
Co-authored-by: Bennet <bennet@zed.dev>
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Thorsten Ball
2025-01-15 14:15:50 +00:00
committed by GitHub
co-authored by Agus Bennet Antonio
parent 4a7630204a
commit b1cfc116d0
+3 -1
View File
@@ -462,7 +462,9 @@ impl CompletionsMenu {
len
}
CompletionEntry::InlineCompletionHint(hint) => hint.label().chars().count(),
CompletionEntry::InlineCompletionHint(hint) => {
"Zed AI / ".chars().count() + hint.label().chars().count()
}
})
.map(|(ix, _)| ix);
drop(completions);