about summary refs log tree commit diff
path: root/Completion/Commands/_most_recent_file
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-06-27 05:33:04 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-06-27 05:33:04 +0000
commit346825df86466cf151be61b9429ef2c1734e66ea (patch)
treebd3e1ccd947b47f974c62b4113c5276416de2c9f /Completion/Commands/_most_recent_file
parenta2159285e80508bb682d90a71270fbddada8bd05 (diff)
downloadzsh-3.1.5-pws-24.tar.gz
zsh-3.1.5-pws-24.tar.xz
zsh-3.1.5-pws-24.zip
zsh-3.1.5-pws-24 zsh-3.1.5-pws-24
Diffstat (limited to 'Completion/Commands/_most_recent_file')
-rw-r--r--Completion/Commands/_most_recent_file4
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