[accerciser: 4/5] IPython: fixed the character loss during autocompletion
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser: 4/5] IPython: fixed the character loss during autocompletion
- Date: Mon, 20 Apr 2020 23:51:00 +0000 (UTC)
commit e82d2eb0359a33deb35d741018c647f0bf86fb09
Author: Rok Mandeljc <rok mandeljc gmail com>
Date: Thu Apr 16 20:37:19 2020 +0200
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").
plugins/ipython_view.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/ipython_view.py b/plugins/ipython_view.py
index c8f6a71..e03b70f 100755
--- a/plugins/ipython_view.py
+++ b/plugins/ipython_view.py
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]