mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-19 22:01:00 +00:00
Fix stringwidth build
This commit is contained in:
parent
c3a165e61d
commit
28af256be0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue