zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: zsh-workers <zsh-workers@sunsite.dk>
Subject: fix _most_recent_file
Date: Fri, 3 Nov 2006 20:36:37 +0100	[thread overview]
Message-ID: <237967ef0611031136u7ad550aep2d7b79e3a3114b19@mail.gmail.com> (raw)

_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


                 reply	other threads:[~2006-11-03 19:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=237967ef0611031136u7ad550aep2d7b79e3a3114b19@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).