Avoid trailing separators in file finder
This commit is contained in:
parent
16626592db
commit
af6f467890
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue