aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.go b/text.go
index 7b25e7f..7ef1570 100644
--- a/text.go
+++ b/text.go
@@ -42,6 +42,8 @@ func (f Font) Print(c *bufio.Writer, s string, off Point) Point {
p.Line(c)
}
off.Y += gl.W
+ } else if ch == '\t' {
+ off.Y += f[' '].W * 8
}
}
return off