diff options
author | mathieui <mathieui@mathieui.net> | 2018-02-11 17:58:00 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-02-11 17:58:00 +0100 |
commit | 957ee8084d89d5437d047aa3fef734fe005497c4 (patch) | |
tree | d79d7e11390709c3ff24ded8182787db3af99d6e | |
parent | a9e2a0177bd705a367d5a161be6a0a5b77bbb79d (diff) | |
download | poezio-957ee8084d89d5437d047aa3fef734fe005497c4.tar.gz poezio-957ee8084d89d5437d047aa3fef734fe005497c4.tar.bz2 poezio-957ee8084d89d5437d047aa3fef734fe005497c4.tar.xz poezio-957ee8084d89d5437d047aa3fef734fe005497c4.zip |
Remove the """smart""" command completion
-rw-r--r-- | poezio/tabs/basetabs.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index a4e9d949..7418722d 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -245,14 +245,6 @@ class Tab(object): # Otherwise we would need to add a useless space before being # able to complete the arguments. hit_copy = set(the_input.hit_list) - while not hit_copy: - whitespace = the_input.text.find(' ') - if whitespace == -1: - whitespace = len(the_input.text) - the_input.text = the_input.text[:whitespace - - 1] + the_input.text[whitespace:] - the_input.new_completion(words, 0) - hit_copy = set(the_input.hit_list) if len(hit_copy) == 1: the_input.do_command(' ') the_input.reset_completion() |