From 20d67907c95265356b51dbdce8ecc0c1ede9e66b Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 15 Apr 1999 18:11:42 +0000 Subject: zsh-3.1.5-pws-5 --- Src/Zle/zle.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'Src/Zle/zle.h') diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h index 71a929f87..f12505bd3 100644 --- a/Src/Zle/zle.h +++ b/Src/Zle/zle.h @@ -47,23 +47,29 @@ struct widget { ZleIntFunc fn; /* pointer to internally implemented widget */ char *fnnam; /* name of the shell function for user-defined widget */ Compctl cc; /* for use with a WIDGET_COMP widget */ + struct { + ZleIntFunc fn; /* internal widget function to call */ + char *wid; /* name of widget to call */ + char *func; /* name of shell function to call */ + } comp; } u; }; #define WIDGET_INT (1<<0) /* widget is internally implemented */ #define WIDGET_COMP (1<<1) /* Special completion widget */ -#define ZLE_MENUCMP (1<<2) /* DON'T invalidate completion list */ -#define ZLE_YANK (1<<3) -#define ZLE_LINEMOVE (1<<4) /* command is a line-oriented movement */ -#define ZLE_LASTCOL (1<<5) /* command maintains lastcol correctly */ -#define ZLE_KILL (1<<6) +#define WIDGET_NCOMP (1<<2) /* new style completion widget */ +#define ZLE_MENUCMP (1<<3) /* DON'T invalidate completion list */ +#define ZLE_YANK (1<<4) +#define ZLE_LINEMOVE (1<<5) /* command is a line-oriented movement */ +#define ZLE_LASTCOL (1<<6) /* command maintains lastcol correctly */ +#define ZLE_KILL (1<<7) #define ZLE_KEEPSUFFIX (1<<9) /* DON'T remove added suffix */ #define ZLE_USEMENU (1<<10) /* Do ) use menu completion for */ #define ZLE_NOMENU (1<<11) /* Don't ) widget, else use default */ #define ZLE_USEGLOB (1<<12) /* Do ) use glob completion for */ #define ZLE_NOGLOB (1<<13) /* Don't ) widget, else use default */ #define ZLE_NOTCOMMAND (1<<14) /* widget should not alter lastcmd */ - +#define ZLE_ISCOMP (1<<15) /* usable for new style completion */ /* thingies */ struct thingy { -- cgit 1.4.1