about summary refs log tree commit diff
path: root/Completion/Base/_condition
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/_condition')
-rw-r--r--Completion/Base/_condition8
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/Base/_condition b/Completion/Base/_condition
index fb6b98b1b..db1adfd9a 100644
--- a/Completion/Base/_condition
+++ b/Completion/Base/_condition
@@ -7,6 +7,10 @@ if [[ "$prev" = -o ]]; then
 elif [[ "$prev" = -([no]t|ef) ]]; then
   _files
 else
-  _files
-  compgen -v
+  local ret=1
+
+  _files && ret=0
+  compgen -v && ret=0
+
+  return ret
 fi