]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/util.go
Slight improvements to included region highlighting
[micro.git] / cmd / micro / util.go
index 1888155a8370536fd1cdab3733546cdbd2a53a39..24a331844feb5b657c73836ae9d38878f9688d98 100644 (file)
@@ -174,7 +174,7 @@ func StringWidth(str string, tabsize int) int {
                switch ch {
                case '\t':
                        ts := tabsize - (lineIdx % tabsize)
-                       sw += ts - 1
+                       sw += ts
                        lineIdx += ts
                case '\n':
                        lineIdx = 0