summaryrefslogtreecommitdiffstats
path: root/Completion/Commands
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
parentzsh-3.1.5-pws-22 (diff)
downloadzsh-346825df86466cf151be61b9429ef2c1734e66ea.tar
zsh-346825df86466cf151be61b9429ef2c1734e66ea.tar.gz
zsh-346825df86466cf151be61b9429ef2c1734e66ea.tar.bz2
zsh-346825df86466cf151be61b9429ef2c1734e66ea.tar.lz
zsh-346825df86466cf151be61b9429ef2c1734e66ea.tar.xz
zsh-346825df86466cf151be61b9429ef2c1734e66ea.tar.zst
zsh-346825df86466cf151be61b9429ef2c1734e66ea.zip
zsh-3.1.5-pws-24zsh-3.1.5-pws-24
Diffstat (limited to 'Completion/Commands')
-rw-r--r--Completion/Commands/.distfiles2
-rw-r--r--Completion/Commands/_correct_filename2
-rw-r--r--Completion/Commands/_most_recent_file4
3 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Commands/.distfiles b/Completion/Commands/.distfiles
index 19a02ef39..f79d69704 100644
--- a/Completion/Commands/.distfiles
+++ b/Completion/Commands/.distfiles
@@ -1,3 +1,3 @@
DISTFILES_SRC='
- .distfiles _correct_filename _correct_word _most_recent_file
+ .distfiles _correct_filename _most_recent_file
'
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
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