1
0
forked from VimPlug/jedi

fixed a positioning bug in the own tokenizer

This commit is contained in:
David Halter
2013-04-17 23:37:21 +04:30
parent d82f315ea6
commit 4e27e7d335

View File

@@ -102,8 +102,7 @@ class NoErrorTokenizer(object):
debug.warning('indentation error on line %s, ignoring it' %
self.current[2][0])
# add the starting line of the last position
self.offset = (self.offset[0] + self.current[2][0],
self.current[2][1])
self.offset = self.current[2]
self.gen = PushBackIterator(tokenize.generate_tokens(
self.readline))
return self.__next__()