From 4e27e7d33510158a2889b75bd11f766e091aa1a7 Mon Sep 17 00:00:00 2001 From: David Halter Date: Wed, 17 Apr 2013 23:37:21 +0430 Subject: [PATCH] fixed a positioning bug in the own tokenizer --- jedi/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jedi/common.py b/jedi/common.py index 6ab5cbd1..45ec6f7b 100644 --- a/jedi/common.py +++ b/jedi/common.py @@ -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__()