zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: zsh-5.0.4: cd autocompletion broken for "../" when CDPATH is set
Date: Mon, 30 Dec 2013 12:20:26 -0800	[thread overview]
Message-ID: <131230122026.ZM23634@torch.brasslantern.com> (raw)
In-Reply-To: <131230111716.ZM23440@torch.brasslantern.com>

On Dec 30, 11:17am, Bart Schaefer wrote:
} Subject: Re: zsh-5.0.4: cd autocompletion broken for "../" when CDPATH is 
}
} On Dec 30,  3:50pm, Martin Birgmeier wrote:
} }
} } Since the upgrade to 5.0.4, whenever I type (in any directory)
} } 
} } # cd ../<TAB>
} } 
} } then instead of autocompleting the entries in .., I get all entries in
} } all of the CDPATH components.
} 
} -  if [[ $PREFIX != (\~|/|./|../)* ]]; then
} +  if [[ $PREFIX != (\~|/|./|../)* && -z $tmpWpath ]]; then
 
... in which case the reference to tmpWpath in that block would not be
needed at all.  Hmm.  That's not right.  What we want is more like:

diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd
index b9860ff..6b8d7eb 100644
--- a/Completion/Zsh/Command/_cd
+++ b/Completion/Zsh/Command/_cd
@@ -63,7 +63,7 @@ else
     fi
   fi
 
-  if [[ $PREFIX != (\~|/|./|../)* ]]; then
+  if [[ $PREFIX != (\~|/|./|../)* && $IPREFIX != ../* ]]; then
     local tmpcdpath alt
 
     alt=()


So please ignore 32203.


  reply	other threads:[~2013-12-30 20:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30 14:50 Martin Birgmeier
2013-12-30 19:17 ` Bart Schaefer
2013-12-30 20:20   ` Bart Schaefer [this message]
2013-12-31 13:56 Martin Birgmeier

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=131230122026.ZM23634@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).