line_offset to offset in Parser, which is important for exact positioning

This commit is contained in:
David Halter committed 2013-02-18 23:17:41 +04:30
1 parent b2aa8b8024
commit c3fe5d04dd
7 files changed
+20 -25

No files matched your search

+1 -1
View File
@@ -264,7 +264,7 @@ class ModuleWithCursor(Module):
offset = max(self.position[0] - length, 0)
s = '\n'.join(self.source.splitlines()[offset:offset + length])
self._part_parser = parsing.Parser(s, self.path, self.position,
line_offset=offset)
offset=(offset, 0))
return self._part_parser