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
|
@ -1208,7 +1208,7 @@ impl InlineAssistant {
|
|||
editor.set_read_only(true);
|
||||
editor.set_show_inline_completions(Some(false), cx);
|
||||
editor.highlight_rows::<DeletedLines>(
|
||||
Anchor::min()..=Anchor::max(),
|
||||
Anchor::min()..Anchor::max(),
|
||||
cx.theme().status().deleted_background,
|
||||
false,
|
||||
cx,
|
||||
|
@ -2557,7 +2557,7 @@ enum CodegenStatus {
|
|||
#[derive(Default)]
|
||||
struct Diff {
|
||||
deleted_row_ranges: Vec<(Anchor, RangeInclusive<u32>)>,
|
||||
inserted_row_ranges: Vec<RangeInclusive<Anchor>>,
|
||||
inserted_row_ranges: Vec<Range<Anchor>>,
|
||||
}
|
||||
|
||||
impl Diff {
|
||||
|
@ -3103,7 +3103,7 @@ impl CodegenAlternative {
|
|||
new_end_row,
|
||||
new_snapshot.line_len(MultiBufferRow(new_end_row)),
|
||||
));
|
||||
self.diff.inserted_row_ranges.push(start..=end);
|
||||
self.diff.inserted_row_ranges.push(start..end);
|
||||
new_row += lines;
|
||||
}
|
||||
}
|
||||
|
@ -3181,7 +3181,7 @@ impl CodegenAlternative {
|
|||
new_end_row,
|
||||
new_snapshot.line_len(MultiBufferRow(new_end_row)),
|
||||
));
|
||||
inserted_row_ranges.push(start..=end);
|
||||
inserted_row_ranges.push(start..end);
|
||||
new_row += line_count;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue