From 28af256be036f3513139e897c996cf708219b53c Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Fri, 3 Feb 2017 07:32:48 -0500 Subject: [PATCH] Fix stringwidth build --- cmd/micro/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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