From 155914470da7f63d7a41025a17c1fd0827ed7df9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 16 May 2012 17:39:14 +0200 Subject: Complete the commands differently. If there is 0 match for the beginning of command, delete the last letter (over and over) until there is a match, then complete that. --- src/tabs.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 1ac301a1..a66d81cd 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -217,6 +217,10 @@ 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: + the_input.key_backspace() + the_input.auto_completion(words, '', quotify=False) + hit_copy = set(the_input.hit_list) if len(hit_copy) == 1: the_input.do_command(' ') return True -- cgit v1.2.3