From 0dd3936c5cbb92c4c4e0153c5c4f5922d76c3c0c Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 7 Apr 2014 15:39:15 +0200 Subject: [PATCH] small clean up in the user context backwards tokenizer --- jedi/parser/user_context.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jedi/parser/user_context.py b/jedi/parser/user_context.py index 69dc3ddd..96841dae 100644 --- a/jedi/parser/user_context.py +++ b/jedi/parser/user_context.py @@ -72,6 +72,7 @@ class UserContext(object): tok_type = tok.type tok_str = tok.string end = tok.end_pos + self._column_temp = self._line_length - end[1] if is_first: if tok.start_pos != (1, 0): # whitespace is not a path return u(''), start_cursor @@ -102,14 +103,12 @@ class UserContext(object): elif tok_type == tokenize.NUMBER: pass else: - self._column_temp = self._line_length - end[1] break x = start_pos[0] - end[0] + 1 l = self.get_line(x) l = first_line if x == start_pos[0] else l start_cursor = x, len(l) - end[1] - self._column_temp = self._line_length - end[1] string += tok_str last_type = tok_type