From c06f73b48456c194a2eb4692f0de63bea09449c4 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 16 Oct 2017 00:04:46 +0200 Subject: fixes an off-by-one error for nimpretty --- compiler/nimlexbase.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/nimlexbase.nim b/compiler/nimlexbase.nim index c395a3709..2e7416645 100644 --- a/compiler/nimlexbase.nim +++ b/compiler/nimlexbase.nim @@ -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 -- cgit 1.4.1-2-gfad0