fix: empty candidates

This commit is contained in:
iff 2025-04-08 20:09:45 +02:00
parent 3215fe45f6
commit 998b27f879

View file

@ -281,6 +281,9 @@ pub fn add_candidates_no_dup(
) {
for candidate in new_candidates {
let candidate = candidate.trim();
if candidate.is_empty() {
continue;
}
if candidate != command && !candidates.contains(&candidate.to_string()) {
candidates.push(candidate.to_string());
}