Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion no longer enabled in zsh -f



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