More git hunk highlighting fixes (#18459)
Follow-up to https://github.com/zed-industries/zed/pull/18454 Release Notes: - N/A
This commit is contained in:
parent
689da9d0b1
commit
0daa070448
7 changed files with 69 additions and 100 deletions
|
@ -143,7 +143,7 @@ impl OutlineViewDelegate {
|
|||
self.active_editor.update(cx, |active_editor, cx| {
|
||||
active_editor.clear_row_highlights::<OutlineRowHighlights>();
|
||||
active_editor.highlight_rows::<OutlineRowHighlights>(
|
||||
outline_item.range.start..=outline_item.range.end,
|
||||
outline_item.range.start..outline_item.range.end,
|
||||
cx.theme().colors().editor_highlighted_line_background,
|
||||
true,
|
||||
cx,
|
||||
|
@ -245,7 +245,7 @@ impl PickerDelegate for OutlineViewDelegate {
|
|||
.next();
|
||||
if let Some((rows, _)) = highlight {
|
||||
active_editor.change_selections(Some(Autoscroll::center()), cx, |s| {
|
||||
s.select_ranges([*rows.start()..*rows.start()])
|
||||
s.select_ranges([rows.start..rows.start])
|
||||
});
|
||||
active_editor.clear_row_highlights::<OutlineRowHighlights>();
|
||||
active_editor.focus(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue