1
0
forked from VimPlug/jedi

Fix positioning of the user statements.

This commit is contained in:
Dave Halter
2014-11-29 16:20:12 +01:00
parent cd7044cae3
commit 3928f466cf

View File

@@ -317,7 +317,6 @@ class Script(object):
raise NotImplementedError
raise NotFoundError()
# TODO remove?
user_stmt = self._parser.user_stmt()
if user_stmt is None:
# Set the start_pos to a pseudo position, that doesn't exist but works
@@ -326,7 +325,7 @@ class Script(object):
else:
pos = user_stmt.start_pos
#stmt.move(pos[0] - 1, pos[1])
stmt.move(0, pos[1])
stmt.parent = self._parser.user_scope()
return stmt