summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-24 14:28:34 +0100
committermathieui <mathieui@mathieui.net>2011-11-24 14:28:34 +0100
commita360588fa0c4085bbd79f53b44d94e794fc5a7b8 (patch)
tree559145ff257f4157d0befb57d6d7613847040660
parentc48e9ff58280880e113c390e3dcfda1a59da4bf3 (diff)
downloadpoezio-a360588fa0c4085bbd79f53b44d94e794fc5a7b8.tar.gz
poezio-a360588fa0c4085bbd79f53b44d94e794fc5a7b8.tar.bz2
poezio-a360588fa0c4085bbd79f53b44d94e794fc5a7b8.tar.xz
poezio-a360588fa0c4085bbd79f53b44d94e794fc5a7b8.zip
Fixes #2301
-rw-r--r--src/tabs.py6
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