Avoid trailing separators in file finder

This commit is contained in:
Kirill Bulatov committed 2023-12-26 13:49:00 +02:00
1 parent c263f370ce
commit c8c4e869ad
1 file changed
+1 -1
+1 -1
View File
@@ -546,7 +546,7 @@ impl PickerDelegate for FileFinderDelegate {
fn separators_after_indices(&self) -> Vec<usize> {
let history_items = self.matches.history.len();
if history_items == 0 {
if history_items == 0 || self.matches.search.is_empty() {
Vec::new()
} else {
vec![history_items - 1]