1
0
forked from VimPlug/jedi

change strange usage of resetting positions in Script

This commit is contained in:
David Halter
2013-08-18 19:30:11 +04:30
parent ef2d99358f
commit 78f1ae5e71

View File

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