Change summary
crates/breadcrumbs/src/breadcrumbs.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Detailed changes
@@ -99,7 +99,9 @@ impl ToolbarItemView for Breadcrumbs {
if let Some(editor) = item.act_as::<Editor>(cx) {
self.subscriptions
.push(cx.subscribe(&editor, |_, _, event, cx| match event {
- editor::Event::BufferEdited => cx.notify(),
+ editor::Event::BufferEdited
+ | editor::Event::TitleChanged
+ | editor::Event::Saved => cx.notify(),
editor::Event::SelectionsChanged { local } if *local => cx.notify(),
_ => {}
}));