From a360588fa0c4085bbd79f53b44d94e794fc5a7b8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 24 Nov 2011 14:28:34 +0100 Subject: Fixes #2301 --- src/tabs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tabs.py b/src/tabs.py index 70298ec8..76bbb372 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -203,7 +203,11 @@ class Tab(object): # one possibily. The next tab will complete the argument. # Otherwise we would need to add a useless space before being # able to complete the arguments. - if len(the_input.hit_list) == 1: + hit_copy = the_input.hit_list[:] + for w in hit_copy[:]: + while hit_copy.count(w) > 1: + hit_copy.remove(w) + if len(hit_copy) in (1, 0): the_input.do_command(' ') return True return False -- cgit v1.2.3