Fixes the column position when invoking idetools.
Vim starts counting columns from 1 but the nimrod idetools command starts from zero. This can be verified writing a call to the quit() proc with a two level identation and trying to invoke idetools on the whitespace before the word.
This commit is contained in:
parent
dbe7e8fdb8
commit
aa10e421b2
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ let g:nimrod_symbol_types = {
|
|||
|
||||
fun! NimExec(op)
|
||||
let cmd = printf("nimrod idetools %s --track:\"%s,%d,%d\" \"%s\"",
|
||||
\ a:op, expand('%:p'), line('.'), col('.'), CurrentNimrodFile())
|
||||
\ a:op, expand('%:p'), line('.'), col('.')-1, CurrentNimrodFile())
|
||||
|
||||
call add(g:nim_log, cmd)
|
||||
let output = system(cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue