summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-09-04 13:31:28 +0200
committernarimiran <narimiran@disroot.org>2019-09-04 13:31:59 +0200
commita9c7fb2fccb13ca4395986e8c19b3c42b7d3500e (patch)
treee6f6beda620c369db3fb855d144505c9acad53e7 /compiler
parentfa5707e7e2494065be09f4e4f0590140399cd215 (diff)
downloadNim-a9c7fb2fccb13ca4395986e8c19b3c42b7d3500e.tar.gz
fixes nimsuggest/#108: RangeError with d:release
Diffstat (limited to 'compiler')
-rw-r--r--compiler/suggest.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim
index 9680bc846..5cb365a4a 100644
--- a/compiler/suggest.nim
+++ b/compiler/suggest.nim
@@ -641,7 +641,7 @@ proc suggestSentinel*(c: PContext) =
       var pm: PrefixMatch
       if filterSymNoOpr(it, nil, pm):
         outputs.add(symToSuggest(c.config, it, isLocal = isLocal, ideSug,
-            newLineInfo(c.config.m.trackPos.fileIndex, -1, -1), 0,
+            newLineInfo(c.config.m.trackPos.fileIndex, 0, -1), 0,
             PrefixMatch.None, false, scopeN))
 
   dec(c.compilesContextId)