diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-03-14 10:28:50 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-14 10:28:50 +0100 |
commit | f162ff7773c01cc0eb7f193ff3a075b48aad75b2 (patch) | |
tree | 3eb0ca61fbc4201c70de5edd4512c884fa46d378 /compiler | |
parent | c149a235e7d8748422240c56c132b6594a629113 (diff) | |
download | Nim-f162ff7773c01cc0eb7f193ff3a075b48aad75b2.tar.gz |
nimsuggest: make tdot1 test case green again
Diffstat (limited to 'compiler')
-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 7e54a30e2..2bb228f41 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -1080,7 +1080,7 @@ proc rawGetTok*(L: var TLexer, tok: var TToken) = inc(L.bufpos) of '.': when defined(nimsuggest): - if L.fileIdx == gTrackPos.fileIndex and tok.col == gTrackPos.col and + if L.fileIdx == gTrackPos.fileIndex and tok.col+1 == gTrackPos.col and tok.line == gTrackPos.line and gIdeCmd == ideSug: tok.tokType = tkDot L.cursor = CursorPosition.InToken |