diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2018-02-23 15:57:39 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2018-02-23 15:57:39 +0100 |
commit | 1c59fbff6df189ae1e935a9b84a7ed5df06c4282 (patch) | |
tree | 83813320a37784dcff99948566d3fee5965368b0 | |
parent | 0830c7a397a5334c203cda23e4ad9171245aff2c (diff) | |
download | poe-1c59fbff6df189ae1e935a9b84a7ed5df06c4282.tar.gz poe-1c59fbff6df189ae1e935a9b84a7ed5df06c4282.tar.bz2 poe-1c59fbff6df189ae1e935a9b84a7ed5df06c4282.zip |
Fix tabstop draw to align with each views initial x and not the global x.
-rw-r--r-- | view.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++ } |