aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-16 17:12:06 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-16 17:12:06 +0200
commit66d5d2ebec340297f9fa8e72328f564f804cf25e (patch)
treeb9d5d00e1caaf7a4e8d9c271ee54c2e2cfcc91ed
parentf71a721894aeec389c07a83187547af81a9ae3e2 (diff)
Add TAB
-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