mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
💄
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
b9b08879f2
commit
60799c5a7c
1 changed files with 2 additions and 2 deletions
|
@ -2622,7 +2622,7 @@ impl<'a> Traversal<'a> {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn advance_sibling(&mut self) -> bool {
|
||||
pub fn advance_to_sibling(&mut self) -> bool {
|
||||
while let Some(entry) = self.cursor.item() {
|
||||
self.cursor.seek_forward(
|
||||
&TraversalTarget::PathSuccessor(&entry.path),
|
||||
|
@ -2703,7 +2703,7 @@ impl<'a> Iterator for ChildEntriesIter<'a> {
|
|||
fn next(&mut self) -> Option<Self::Item> {
|
||||
if let Some(item) = self.traversal.entry() {
|
||||
if item.path.starts_with(&self.parent_path) {
|
||||
self.traversal.advance_sibling();
|
||||
self.traversal.advance_to_sibling();
|
||||
return Some(item);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue