aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--view.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.go b/view.go
index ef04207..4d9150a 100644
--- a/view.go
+++ b/view.go
@@ -245,7 +245,7 @@ func (b *View) Draw() {
case '\t': // show tab until next even tabstop width
screen.SetContent(x, y, '\t', nil, style)
x++
- for x%b.tabstop != 0 {
+ for (x-b.x)%b.tabstop != 0 {
screen.SetContent(x, y, ' ', nil, fillstyle)
x++
}