1
0
forked from VimPlug/jedi

In every case of a new line the tokenize position should be correct.

This commit is contained in:
Dave Halter
2016-06-04 00:34:00 +02:00
parent 5edcf47512
commit e60c06b691

View File

@@ -293,7 +293,7 @@ def generate_tokens(readline, use_exact_op_types=False):
typ = OP
yield typ, token, spos, prefix
if new_line:
if new_line or additional_prefix[-1:] == '\n':
end_pos = lnum + 1, 0
else:
end_pos = lnum, max