fixes an off-by-one error for nimpretty
This commit is contained in:
parent
ccf99fa5ce
commit
c06f73b484
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ proc fillBaseLexer(L: var TBaseLexer, pos: int): int =
|
||||||
result = pos + 1 # nothing to do
|
result = pos + 1 # nothing to do
|
||||||
else:
|
else:
|
||||||
fillBuffer(L)
|
fillBuffer(L)
|
||||||
L.offsetBase += pos
|
L.offsetBase += pos + 1
|
||||||
L.bufpos = 0
|
L.bufpos = 0
|
||||||
result = 0
|
result = 0
|
||||||
L.lineStart = result
|
L.lineStart = result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue