summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tabs.py b/src/tabs.py
index be8085e8..1ac301a1 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -216,11 +216,8 @@ 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.
- 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):
+ hit_copy = set(the_input.hit_list)
+ if len(hit_copy) == 1:
the_input.do_command(' ')
return True
return False