diff options
author | Araq <rumpf_a@web.de> | 2017-03-08 13:21:40 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-03-08 13:21:40 +0100 |
commit | 0f63c101e4a9bb11481c287f589071bdbcc98a18 (patch) | |
tree | 0db31c60d335587caf32a67c744c1e67bb0e3dea /compiler/lexer.nim | |
parent | 0596c11775427128138fa9a95e5f66d4674373c7 (diff) | |
download | Nim-0f63c101e4a9bb11481c287f589071bdbcc98a18.tar.gz |
fixes nimsuggest bug #45
Diffstat (limited to 'compiler/lexer.nim')
-rw-r--r-- | compiler/lexer.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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) |