fix problems of the last 10 commits
This commit is contained in:
1 parent
4b98321796
commit
6c2f8a759d
3 files changed
+5
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user