Avoid trailing separators in file finder

This commit is contained in:
Kirill Bulatov 2023-12-26 13:49:00 +02:00
parent 16626592db
commit af6f467890

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]