columns are 1 based for nimsuggest
This commit is contained in:
parent
6d05ae26e6
commit
d40098ad82
1 changed files with 6 additions and 5 deletions
|
|
@ -82,7 +82,8 @@ proc action(cmd: string) =
|
|||
if cmd[i] == ';':
|
||||
i = parseQuoted(cmd, dirtyfile, i+1)
|
||||
i += skipWhile(cmd, seps, i)
|
||||
var line, col = -1
|
||||
var line = -1
|
||||
var col = 0
|
||||
i += parseInt(cmd, line, i)
|
||||
i += skipWhile(cmd, seps, i)
|
||||
i += parseInt(cmd, col, i)
|
||||
|
|
@ -97,7 +98,7 @@ proc action(cmd: string) =
|
|||
resetModule dirtyIdx
|
||||
if dirtyIdx != gProjectMainIdx:
|
||||
resetModule gProjectMainIdx
|
||||
gTrackPos = newLineInfo(dirtyIdx, line, col)
|
||||
gTrackPos = newLineInfo(dirtyIdx, line, col-1)
|
||||
#echo dirtyfile, gDirtyBufferIdx, " project ", gProjectMainIdx
|
||||
gErrorCounter = 0
|
||||
if not isKnownFile:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue