about summary refs log tree commit diff
path: root/Completion/Commands/_correct_filename
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_correct_filename')
-rw-r--r--Completion/Commands/_correct_filename2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Commands/_correct_filename b/Completion/Commands/_correct_filename
index baef38edf..7431a4831 100644
--- a/Completion/Commands/_correct_filename
+++ b/Completion/Commands/_correct_filename
@@ -23,7 +23,7 @@ if [[ -z $WIDGET ]]; then
   file=$1
   local IPREFIX
 else
-  (( NUMERIC > 1 )) && max_approx=$NUMERIC
+  (( ${NUMERIC:-1} > 1 )) && max_approx=$NUMERIC
 fi
 
 if [[ $file = \~*/* ]]; then