summaryrefslogtreecommitdiff
path: root/src/surface.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/surface.zig')
-rw-r--r--src/surface.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/surface.zig b/src/surface.zig
index a08d6831..f7cc6010 100644
--- a/src/surface.zig
+++ b/src/surface.zig
@@ -589,7 +589,7 @@ pub const Surface = struct {
var cp = decoded orelse 0xFFFD;
if (cp == '\r') continue;
if (cp == '\t') {
- const spaces = @min(config.tab_width, end - col);
+ const spaces = @min(config.tab_now, end - col);
s.fill(col, y, spaces, 1, style);
col += spaces;
continue;
@@ -714,7 +714,7 @@ test "the ASCII fast path in surface print paints what the general arm paints" {
var cp = decoded orelse 0xFFFD;
if (cp == '\r') continue;
if (cp == '\t') {
- const spaces = @min(config.tab_width, end - col);
+ const spaces = @min(config.tab_now, end - col);
s.fill(col, y, spaces, 1, style);
col += spaces;
continue;