Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Set completion function flags correctly for zle -P
- X-seq: zsh-workers 36345
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Set completion function flags correctly for zle -P
- Date: Mon, 31 Aug 2015 11:55:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=H3ZeRsF+WCGRCp+FV+XhvZljERYCpZPa3SZpcKKqxgQ=; b=WKtuVXes75O0RuWdBjEYj2hmr9ukKa0pz296GioyVpD9ujVJ8yj2Hy0qPKn6q9/JrP pazS/UvOY3iuJGWK9+TSLy/XTWKJbrZI0FE7npKVcmYsQqi8CkiOnygjZGW6HF7Ky84b eZZ2KoZUsEFikiMMTK7I8InFpp61rJgzOnagfXfDzPJPABxxe1GXy5RUZrmMr2m+HM2Z pUdELAhT78k4776Dii0Rw0sikqQvjUd2gvU7GWt8VE0FvIE2j14vdpr6f+1mivP7esGi NB5NVOQz15OtAqU61VLhUfV9ua4an23HiOUvJx4hkzhdpzWmuvNw31WyBpK6A3Z9HCgQ 4hdg==
- In-reply-to: <1441007642-12365-1-git-send-email-mikachu@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1441007642-12365-1-git-send-email-mikachu@gmail.com>
---
This appears to work better.
Src/Zle/zle_thingy.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c
index e648838..0401099 100644
--- a/Src/Zle/zle_thingy.c
+++ b/Src/Zle/zle_thingy.c
@@ -606,9 +606,10 @@ bin_zle_prototype(char *name, char **args, UNUSED(Options ops), UNUSED(char func
return 1;
}
w = zalloc(sizeof(*w));
- w->flags = pw->flags & ~WIDGET_INT;
+ w->flags = pw->flags & ~(WIDGET_INT|ZLE_ISCOMP);
w->first = NULL;
- if (w->flags & WIDGET_NCOMP) {
+ if (pw->flags & ZLE_ISCOMP) {
+ w->flags |= WIDGET_NCOMP;
w->u.comp.fn = pw->u.fn;
w->u.comp.wid = ztrdup(args[1]);
w->u.comp.func = ztrdup(args[2]);
--
2.5.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author