Fix minor autoindent bug

This commit is contained in:
Zachary Yedidia
2016-08-18 11:31:09 -07:00
parent 8d230d2038
commit f790e16883
2 changed files with 3 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ func (l Loc) Move(n int, buf *Buffer) Loc {
return l
}
for i := 0; i < Abs(n); i++ {
return l.left(buf)
l = l.left(buf)
}
return l
}