From a98e13ed1f9c525947088ef9631e19e5477d5171 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 29 Aug 2019 18:21:50 +0900 Subject: 44714: Take account of CDABLE_VARS while checking spelling --- Src/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src') 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; -- cgit 1.4.1