From 29b7123647bc3b70911bbb2caf85238d22d160c8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 29 May 2007 14:16:02 +0000 Subject: 23485: feature completion and autoloading --- Src/cond.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Src/cond.c') diff --git a/Src/cond.c b/Src/cond.c index a597587b6..4356e5d66 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -95,15 +95,12 @@ evalcond(Estate state, char *fromtest) case COND_REGEX: { char *modname = isset(REMATCHPCRE) ? "zsh/pcre" : "zsh/regex"; - /* - * TODO: we just need to load the appropriate condition. - */ - if (load_module_silence(modname, NULL, 1) == 1) { + sprintf(overridename = overridebuf, "-%s-match", modname+4); + if (ensurefeature(modname, "c:", overridename+1)) { zwarnnam(fromtest, "%s not available for regex", modname); return 2; } - sprintf(overridename = overridebuf, "-%s-match", modname+4); ctype = COND_MODI; } /*FALLTHROUGH*/ -- cgit v1.2.3-70-g09d2