fixes an off-by-one error for nimpretty

This commit is contained in:
Araq
2017-10-16 00:04:46 +02:00
parent ccf99fa5ce
commit c06f73b484

View File

@@ -123,7 +123,7 @@ proc fillBaseLexer(L: var TBaseLexer, pos: int): int =
result = pos + 1 # nothing to do
else:
fillBuffer(L)
L.offsetBase += pos
L.offsetBase += pos + 1
L.bufpos = 0
result = 0
L.lineStart = result