summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Src/Zle/zle_thingy.c34
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;