Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
fix _most_recent_file
- X-seq: zsh-workers 22953
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: fix _most_recent_file
- Date: Fri, 3 Nov 2006 20:36:37 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tuTCXtaEuslcvQa2yX6RX4ps4GXPVEFFcTMYp5/jKJzJcGh8CzT800B7xL+I1ie8fnHrmPCXmpjhzUsA/+oWArJ1gRuYnWT4IsIhHOiQGhcIuh/UTgH4dfJkFc+NSXUH4tocTXLV9u8W+Of5RlbuMZ3RTdk2kan5MRl7+kn977Y=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
_most_recent_file doesn't work on files that start with a dash.
_most_accessed_file:compadd:24: bad option: -6
Index: Completion/Base/Widget/_most_recent_file
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Widget/_most_recent_file,v
retrieving revision 1.2
diff -p -u -d -r1.2 _most_recent_file
--- Completion/Base/Widget/_most_recent_file 14 May 2001 13:44:13 -0000 1.2
+++ Completion/Base/Widget/_most_recent_file 3 Nov 2006 19:35:36 -0000
@@ -21,4 +21,4 @@ else
eval "file=($PREFIX*$SUFFIX(om[${NUMERIC:-1}]N))"
file=(${(q)file})
fi
-(( $#file )) && compadd -U -i "$IPREFIX" -I "$ISUFFIX" -f -Q $file
+(( $#file )) && compadd -U -i "$IPREFIX" -I "$ISUFFIX" -f -Q -- $file
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author