* fix _most_recent_file
@ 2006-11-03 19:36 Mikael Magnusson
0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2006-11-03 19:36 UTC (permalink / raw)
To: zsh-workers
_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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-03 19:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-03 19:36 fix _most_recent_file Mikael Magnusson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).