mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-25 17:58:35 +08:00
change strange usage of resetting positions in Script
This commit is contained in:
+2
-2
@@ -343,11 +343,11 @@ class Script(object):
|
|||||||
call = call.next
|
call = call.next
|
||||||
# reset cursor position:
|
# reset cursor position:
|
||||||
(row, col) = call.name.end_pos
|
(row, col) = call.name.end_pos
|
||||||
self._pos = (row, max(col - 1, 0))
|
_pos = (row, max(col - 1, 0))
|
||||||
self._module = modules.ModuleWithCursor(
|
self._module = modules.ModuleWithCursor(
|
||||||
self._source_path,
|
self._source_path,
|
||||||
source=self.source,
|
source=self.source,
|
||||||
position=self._pos)
|
position=_pos)
|
||||||
# then try to find the path again
|
# then try to find the path again
|
||||||
goto_path = self._module.get_path_under_cursor()
|
goto_path = self._module.get_path_under_cursor()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user