From 998b27f87929cedbac671813db99fe79c649f578 Mon Sep 17 00:00:00 2001 From: iff Date: Tue, 8 Apr 2025 20:09:45 +0200 Subject: [PATCH] fix: empty candidates --- core/src/shell.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/shell.rs b/core/src/shell.rs index a4db0b6..6701368 100644 --- a/core/src/shell.rs +++ b/core/src/shell.rs @@ -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()); }