Merge pull request #719 from zed-industries/misc-breadcrumbs-bugs

Fix miscellaneous breadcrumbs bugs
This commit is contained in:
Nathan Sobo 2022-04-04 05:42:55 -06:00 committed by GitHub
commit 9702ab0075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 29 deletions

View file

@ -207,13 +207,16 @@ impl Pane {
let prev_active_index = mem::replace(&mut pane.active_item_index, index);
pane.focus_active_item(cx);
pane.update_toolbar(cx);
cx.emit(Event::ActivateItem { local: true });
cx.notify();
let mut navigated = prev_active_index != pane.active_item_index;
if let Some(data) = entry.data {
navigated |= pane.active_item()?.navigate(data, cx);
}
if navigated {
cx.notify();
break None;
}
}