From 1c59fbff6df189ae1e935a9b84a7ed5df06c4282 Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Fri, 23 Feb 2018 15:57:39 +0100 Subject: Fix tabstop draw to align with each views initial x and not the global x. --- view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ } -- cgit v1.2.3