From 439450d3bda4ff603c79d71bb451580c611d51fd Mon Sep 17 00:00:00 2001 From: "Spencer G. Jones" Date: Fri, 14 Mar 2014 10:57:24 -0600 Subject: [PATCH] CSharp GoTo was off by one column and line --- python/ycm/completers/cs/cs_completer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ycm/completers/cs/cs_completer.py b/python/ycm/completers/cs/cs_completer.py index 285c9a13..c2b9aaa7 100755 --- a/python/ycm/completers/cs/cs_completer.py +++ b/python/ycm/completers/cs/cs_completer.py @@ -206,8 +206,8 @@ class CsharpCompleter( Completer ): self._DefaultParameters( request_data ) ) if definition[ 'FileName' ] != None: return responses.BuildGoToResponse( definition[ 'FileName' ], - definition[ 'Line' ], - definition[ 'Column' ] ) + definition[ 'Line' ] - 1, + definition[ 'Column' ] - 1 ) else: raise RuntimeError( 'Can\'t jump to definition' )