about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_expand4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand
index fb146e0de..094806f29 100644
--- a/Completion/Core/_expand
+++ b/Completion/Core/_expand
@@ -54,7 +54,7 @@ fi
 
 # If the array is empty, store the original string again.
 
-(( $#exp )) || exp=("$word")
+[[ -z "$exp" ]] && exp=("$word")
 
 subd=("$exp[@]")
 
@@ -92,7 +92,7 @@ zstyle -s ":completion:${curcontext}:" sort sort
 if (( $#exp == 1 )); then
   if [[ -d $exp && "$exp[1]" != */ ]]; then
     suf=/
-  elif zstyle -T ":completion:${curcontext}:" add-space; then
+  elif ! zstyle -T ":completion:${curcontext}:" add-space; then
     suf=
   fi
 fi