summaryrefslogtreecommitdiff
path: root/core/ansi.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/ansi.zig')
-rw-r--r--core/ansi.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ansi.zig b/core/ansi.zig
index 6a5d0416..6c23fee6 100644
--- a/core/ansi.zig
+++ b/core/ansi.zig
@@ -438,7 +438,7 @@ pub fn recolorDiffOutput(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, t
view.* = null;
const line = shown.next() orelse continue;
const vr: i32 = @intCast(vi);
- const w = pane.wrapAt(vr);
+ const w = pane.wrapAt(p.settings.tab, vr);
const row_i: i32 = if (raw) @as(i32, @intCast(panes.Term.grid(pane.terminal).offset)) + vr else w.line;
if (row_i < 0 or row_i >= @as(i64, @intCast(rows.len))) continue;
const row: usize = @intCast(row_i);
@@ -466,7 +466,7 @@ pub fn recolorDiffOutput(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, t
while (c < line.len and screen_c < tw) {
const grapheme_end = modal.nextGrapheme(line, c);
if (grapheme_end <= c) break;
- const cells = panes.File.graphemeDisplayWidth(line[c..grapheme_end]);
+ const cells = panes.File.graphemeDisplayWidth(p.settings.tab, line[c..grapheme_end]);
const style = styles[base + view.at + c];
const prefix = view.at + c == 0 and (line[0] == '+' or line[0] == '-');
// On an added or removed line, what the program coloured red or