debugger: Fix typing in active buffer resulting a jump to an active debug line (#27439)
/cc @iamnbutler Release Notes: - N/A --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
parent
f9212a001e
commit
2fe2028e20
5 changed files with 42 additions and 30 deletions
|
@ -1067,7 +1067,7 @@ impl OutlinePanel {
|
|||
if change_selection {
|
||||
active_editor.update(cx, |editor, cx| {
|
||||
editor.change_selections(
|
||||
Some(Autoscroll::Strategy(AutoscrollStrategy::Center)),
|
||||
Some(Autoscroll::Strategy(AutoscrollStrategy::Center, None)),
|
||||
window,
|
||||
cx,
|
||||
|s| s.select_ranges(Some(anchor..anchor)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue