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:
Grzegorz Adam Hankiewicz 2013-02-03 17:49:05 +01:00
commit aa10e421b2

View file

@ -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)