diff --git a/cmd/micro/util.go b/cmd/micro/util.go index 1888155a..24a33184 100644 --- a/cmd/micro/util.go +++ b/cmd/micro/util.go @@ -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