Render a "Jump to Buffer" icon on all excerpt headers
This commit is contained in:
parent
c2eaf6128e
commit
712d47d94f
7 changed files with 86 additions and 74 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue