zsh-workers
 help / color / mirror / code / Atom feed
From: Jun T <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: Re: Zsh CORRECT option is unaware of AUTO_CD and CDABLE_VARS
Date: Tue, 27 Aug 2019 12:43:35 +0900	[thread overview]
Message-ID: <539DC388-2041-42E2-B1F1-A214AEA86F5A@kba.biglobe.ne.jp> (raw)
In-Reply-To: <AD1F57C2-AF9C-439F-964B-2D6A9E83DB86@kba.biglobe.ne.jp>



> 2019/08/27 11:59、I wrote:
> 
> I hope this has no obvious bad side effects.

Sorry, is this better?


diff --git a/Src/utils.c b/Src/utils.c
index 46cf7bcf6..2c4726fa0 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -3159,6 +3159,8 @@ spckword(char **s, int hist, int cmd, int ask)
 	    scanhashtable(cmdnamtab, 1, 0, 0, spscan, 0);
 	    if (autocd) {
 		char **pp;
+		if (cd_able_vars(guess))
+		    return;
 		for (pp = cdpath; *pp; pp++) {
 		    char bestcd[PATH_MAX + 1];
 		    int thisdist;




      reply	other threads:[~2019-08-27  3:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26 13:59 Cameron Steffen
2019-08-27  2:59 ` Jun T
2019-08-27  3:43   ` Jun T [this message]

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=539DC388-2041-42E2-B1F1-A214AEA86F5A@kba.biglobe.ne.jp \
    --to=takimoto-j@kba.biglobe.ne.jp \
    --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).