about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-08-29 18:21:50 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2019-08-29 18:21:50 +0900
commita98e13ed1f9c525947088ef9631e19e5477d5171 (patch)
tree54442e27dd74917691c692f5c5317046effbadda /Src
parentb82c24801f5917f2975e80729a73a2890382d267 (diff)
downloadzsh-a98e13ed1f9c525947088ef9631e19e5477d5171.tar.gz
zsh-a98e13ed1f9c525947088ef9631e19e5477d5171.tar.xz
zsh-a98e13ed1f9c525947088ef9631e19e5477d5171.zip
44714: Take account of CDABLE_VARS while checking spelling
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 46cf7bcf6..1d916e71f 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(unmeta(guess)))
+		    return;
 		for (pp = cdpath; *pp; pp++) {
 		    char bestcd[PATH_MAX + 1];
 		    int thisdist;