about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_expand2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_expand b/Completion/Core/_expand
index 8bf6d11f4..869c9c843 100644
--- a/Completion/Core/_expand
+++ b/Completion/Core/_expand
@@ -111,7 +111,7 @@ else
   if _requested all-expansions expl 'all expansions'; then
     local disp dstr
 
-    if [[ $#exp -ge COLUMNS ]]; then
+    if [[ "${#${exp}}" -ge COLUMNS ]]; then
       disp=( -ld dstr )
       dstr=( "${(r:COLUMNS-5:)exp} ..." )
     else