Skip to content

Commit

Permalink
Fix bug where search ignored worktree if started from directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony-Eid committed Nov 20, 2024
1 parent d7aff37 commit 623b482
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/project_panel/src/project_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,9 @@ impl ProjectPanel {
}

let first = first_iter
.take_until(|ele| *ele == root_entry)
.enumerate()
.take_until(|(count, ele)| *ele == root_entry && *count != 0usize)
.map(|(_, ele)| ele)
.find(|ele| predicate(ele, tree_id))
.cloned();

Expand Down

0 comments on commit 623b482

Please sign in to comment.