summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-09-05 00:31:37 +0200
committerGitHub <noreply@github.com>2019-09-05 00:31:37 +0200
commitc2ba0ee144adfaea6f2e1cc93a20d022149f6ccf (patch)
tree6fd1495cc9e6aa01349d9882b8d6e611e0b1af99
parent92c012d86db1c3da20564dcc7026c3e7f4b5499b (diff)
parenta9c7fb2fccb13ca4395986e8c19b3c42b7d3500e (diff)
downloadNim-c2ba0ee144adfaea6f2e1cc93a20d022149f6ccf.tar.gz
Merge pull request #12124 from narimiran/nimsuggest-108
fixes nimsuggest/#108: RangeError with d:release
-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)