diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |