Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion no longer enabled in zsh -f
- X-seq: zsh-workers 9633
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Completion no longer enabled in zsh -f
- Date: Wed, 9 Feb 2000 09:56:47 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Mon, 7 Feb 2000 04:23:08 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> ...
>
> - load_module("zsh/zle");
> + load_module("zsh/zle") && load_module("zsh/compctl");
I like this, very shell-ish. But it makes my gcc warn about a `value
computed is not used'.
Bye
Sven
diff -ru ../z.old/Src/init.c Src/init.c
--- ../z.old/Src/init.c Wed Feb 9 09:30:18 2000
+++ Src/init.c Wed Feb 9 09:49:58 2000
@@ -1012,7 +1012,8 @@
autoload_zleread(char *lp, char *rp, int ha)
{
zlereadptr = fallback_zleread;
- load_module("zsh/zle") && load_module("zsh/compctl");
+ if (load_module("zsh/zle"))
+ load_module("zsh/compctl");
return zleread(lp, rp, ha);
}
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author