Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

fix _most_recent_file



_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