diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2015-10-02 20:41:49 +0200 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2015-10-02 20:41:53 +0200 |
commit | 0626be9e3c02ca9171cd4e0975c208e0c3d6ec2b (patch) | |
tree | d79926a578c7aadf0d59d5df0fc441ef3a648ca6 /Src/Zle | |
parent | e3bc9aa22843cb55912b909e00f54972eab5b2c5 (diff) | |
download | zsh-0626be9e3c02ca9171cd4e0975c208e0c3d6ec2b.tar.gz zsh-0626be9e3c02ca9171cd4e0975c208e0c3d6ec2b.tar.xz zsh-0626be9e3c02ca9171cd4e0975c208e0c3d6ec2b.zip |
unposted: define zle_usable before using it (reported in 36741)
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_thingy.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c index ba89e00a8..c6ef8e6a0 100644 --- a/Src/Zle/zle_thingy.c +++ b/Src/Zle/zle_thingy.c @@ -626,6 +626,23 @@ bin_zle_complete(char *name, char **args, UNUSED(Options ops), UNUSED(char func) /**/ static int +zle_usable() +{ + return zleactive && !incompctlfunc && !incompfunc +#if 0 + /* + * PWS experiment: commenting this out allows zle widgets + * in signals, hooks etc. I'm not sure if this has a down side; + * it ought to be that zleactive is good enough to test whether + * widgets are callable. + */ + && sfcontext == SFC_WIDGET +#endif + ; +} + +/**/ +static int bin_zle_flags(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) { int ret = 0; @@ -668,23 +685,6 @@ bin_zle_flags(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) /**/ static int -zle_usable() -{ - return zleactive && !incompctlfunc && !incompfunc -#if 0 - /* - * PWS experiment: commenting this out allows zle widgets - * in signals, hooks etc. I'm not sure if this has a down side; - * it ought to be that zleactive is good enough to test whether - * widgets are callable. - */ - && sfcontext == SFC_WIDGET -#endif - ; -} - -/**/ -static int bin_zle_call(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) { Thingy t; |