forked from VimPlug/jedi
Fix positioning of the user statements.
This commit is contained in:
@@ -317,7 +317,6 @@ class Script(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
raise NotFoundError()
|
raise NotFoundError()
|
||||||
|
|
||||||
# TODO remove?
|
|
||||||
user_stmt = self._parser.user_stmt()
|
user_stmt = self._parser.user_stmt()
|
||||||
if user_stmt is None:
|
if user_stmt is None:
|
||||||
# Set the start_pos to a pseudo position, that doesn't exist but works
|
# Set the start_pos to a pseudo position, that doesn't exist but works
|
||||||
@@ -326,7 +325,7 @@ class Script(object):
|
|||||||
else:
|
else:
|
||||||
pos = user_stmt.start_pos
|
pos = user_stmt.start_pos
|
||||||
|
|
||||||
#stmt.move(pos[0] - 1, pos[1])
|
stmt.move(0, pos[1])
|
||||||
stmt.parent = self._parser.user_scope()
|
stmt.parent = self._parser.user_scope()
|
||||||
return stmt
|
return stmt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user