Always re-render outline view when changing the active selection

This commit is contained in:
Antonio Scandurra 2022-01-17 10:17:11 +01:00
parent e27fafb824
commit 466b26e7e6

View file

@ -218,8 +218,8 @@ impl OutlineView {
active_editor.set_highlighted_rows(Some(display_rows)); active_editor.set_highlighted_rows(Some(display_rows));
Some(active_editor.newest_selection::<usize>(&buffer_snapshot).id) Some(active_editor.newest_selection::<usize>(&buffer_snapshot).id)
}); });
cx.notify();
} }
cx.notify();
} }
fn confirm(&mut self, _: &Confirm, cx: &mut ViewContext<Self>) { fn confirm(&mut self, _: &Confirm, cx: &mut ViewContext<Self>) {