Commit e82d2eb0 authored by Rok Mandeljc's avatar Rok Mandeljc

IPython: fixed the character loss during autocompletion

Due to a typo in variable name, certain autocomplete attempts
resulted in only the last character of the input line being
preserved (e.g., "pr" + tab would result in "r").
parent 788116d6
......@@ -322,7 +322,7 @@ class IterableIPShell:
return str1[:i]
return str1
if possibilities[1]:
common_prefix = reduce(_commonPrefix, possibilities[1]) or line[-1]
common_prefix = reduce(_commonPrefix, possibilities[1]) or split_line[-1]
completed = line[:-len(split_line[-1])]+common_prefix
else:
completed = line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment