diff --git a/jedi/api.py b/jedi/api.py index 8877c371..7975e94e 100644 --- a/jedi/api.py +++ b/jedi/api.py @@ -343,11 +343,11 @@ class Script(object): call = call.next # reset cursor position: (row, col) = call.name.end_pos - self._pos = (row, max(col - 1, 0)) + _pos = (row, max(col - 1, 0)) self._module = modules.ModuleWithCursor( self._source_path, source=self.source, - position=self._pos) + position=_pos) # then try to find the path again goto_path = self._module.get_path_under_cursor()