Render a "Jump to Buffer" icon on all excerpt headers

This commit is contained in:
Antonio Scandurra 2022-06-08 15:31:29 +02:00
parent c2eaf6128e
commit 712d47d94f
7 changed files with 86 additions and 74 deletions

View file

@ -5849,9 +5849,13 @@ impl Editor {
} else {
buffer.clip_point(position, Bias::Left)
};
let nav_history = editor.nav_history.take();
editor.change_selections(Some(Autoscroll::Newest), cx, |s| {
s.select_ranges([cursor..cursor]);
});
editor.nav_history = nav_history;
Some(())
})?;
Some(())