aboutsummaryrefslogtreecommitdiff
path: root/src/field.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/field.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/field.zig b/src/field.zig
index c0a0b52..1e9b56f 100644
--- a/src/field.zig
+++ b/src/field.zig
@@ -6,7 +6,7 @@ const Line = struct {
data: std.ArrayList(i64),
fn blank(l: *Line, x: i64) void {
const lx = @intCast(i64, l.len());
- if (x < l.x or x > l.x + lx) { // outside the field
+ if (x < l.x or x > l.x + lx - 1) { // outside the field
return;
} else if (x > l.x and x < l.x + lx - 1) { // just set the value
l.data.items[@intCast(usize, x - l.x)] = ' ';