1
0
forked from VimPlug/jedi

fix problems of the last 10 commits

This commit is contained in:
David Halter
2013-01-05 18:24:07 +01:00
parent 4b98321796
commit 6c2f8a759d
3 changed files with 5 additions and 4 deletions

View File

@@ -196,6 +196,8 @@ class ModuleWithCursor(Module):
def get_line(self, line_nr):
if not self._line_cache:
self._line_cache = self.source.splitlines()
if not self.source: # ''.splitlines() == []
self._line_cache = [self.source]
if line_nr == 0:
# This is a fix for the zeroth line. We need a newline there, for