1
0
forked from VimPlug/jedi

So much work for one simple diff fail.

This commit is contained in:
Dave Halter
2017-01-29 00:42:09 +01:00
parent b779677bf9
commit b0f340748c
3 changed files with 98 additions and 29 deletions

View File

@@ -310,7 +310,7 @@ class Leaf(Base):
try:
return self.get_previous_leaf().end_pos
except IndexError:
return 1, 0 # It's the first leaf.
return self.line - self.prefix.count('\n'), 0 # It's the first leaf.
@property
def end_pos(self):