From 0f63c101e4a9bb11481c287f589071bdbcc98a18 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 8 Mar 2017 13:21:40 +0100 Subject: [PATCH] fixes nimsuggest bug #45 --- compiler/lexer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lexer.nim b/compiler/lexer.nim index db370f8b3..c082a5cb3 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -1022,7 +1022,7 @@ proc rawGetTok*(L: var TLexer, tok: var TToken) = inc(L.bufpos) of '.': when defined(nimsuggest): - if L.fileIdx == gTrackPos.fileIndex and tok.col+1 == gTrackPos.col and + if L.fileIdx == gTrackPos.fileIndex and tok.col == gTrackPos.col and tok.line == gTrackPos.line and gIdeCmd == ideSug: tok.tokType = tkDot inc(L.bufpos)