diff options
Diffstat (limited to 'Completion/Commands/_most_recent_file')
-rw-r--r-- | Completion/Commands/_most_recent_file | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Commands/_most_recent_file b/Completion/Commands/_most_recent_file index c571483ca..868da8993 100644 --- a/Completion/Commands/_most_recent_file +++ b/Completion/Commands/_most_recent_file @@ -14,9 +14,9 @@ local file tilde etilde if [[ $PREFIX = \~*/* ]]; then tilde=${PREFIX%%/*} etilde=${~tilde} - file=($~PREFIX*$~SUFFIX(om[$NUMERIC]N)) + file=($~PREFIX*$~SUFFIX(om[${NUMERIC:-1}]N)) file=(${file/#$etilde/$tilde}) else - file=($~PREFIX*$~SUFFIX(om[$NUMERIC]N)) + file=($~PREFIX*$~SUFFIX(om[${NUMERIC:-1}]N)) fi (( $#file )) && compadd -U -i "$IPREFIX" -I "$ISUFFIX" -f -Q $file |