diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-17 18:25:25 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-01-17 18:25:25 +0000 |
commit | 63acd1060174cd9d3595abb3fe71174c595e8131 (patch) | |
tree | 5885596a27556a0d5bfd104ec18848d0c05ce759 /Src/Zle/compctl.c | |
parent | cf10e6052445bc5460e86fc9621dec4cd4b9cb02 (diff) | |
download | zsh-63acd1060174cd9d3595abb3fe71174c595e8131.tar.gz zsh-63acd1060174cd9d3595abb3fe71174c595e8131.tar.xz zsh-63acd1060174cd9d3595abb3fe71174c595e8131.zip |
zsh-workers/9332
Diffstat (limited to 'Src/Zle/compctl.c')
-rw-r--r-- | Src/Zle/compctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 69db9e04a..77a76c156 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -3431,12 +3431,12 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) } if (cc->func) { /* This handles the compctl -K flag. */ - List list; + Eprog prog; char **r; int lv = lastval; /* Get the function. */ - if ((list = getshfunc(cc->func)) != &dummy_list) { + if ((prog = getshfunc(cc->func)) != &dummy_eprog) { /* We have it, so build a argument list. */ LinkList args = newlinklist(); int osc = sfcontext; @@ -3460,7 +3460,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) incompctlfunc = 1; sfcontext = SFC_COMPLETE; /* Call the function. */ - doshfunc(cc->func, list, args, 0, 1); + doshfunc(cc->func, prog, args, 0, 1); sfcontext = osc; incompctlfunc = 0; /* And get the result from the reply parameter. */ @@ -3601,12 +3601,12 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) /* generate the user-defined display list: if anything fails, * * we silently allow the normal completion list to be used. */ char **yaptr = NULL, *uv = NULL; - List list; + Eprog prog; if (cc->ylist[0] == '$' || cc->ylist[0] == '(') { /* from variable */ uv = cc->ylist + (cc->ylist[0] == '$'); - } else if ((list = getshfunc(cc->ylist)) != &dummy_list) { + } else if ((prog = getshfunc(cc->ylist)) != &dummy_eprog) { /* from function: pass completions as arg list */ LinkList args = newlinklist(); LinkNode ln; @@ -3630,7 +3630,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd) if (incompfunc != 1) incompctlfunc = 1; sfcontext = SFC_COMPLETE; - doshfunc(cc->ylist, list, args, 0, 1); + doshfunc(cc->ylist, prog, args, 0, 1); sfcontext = osc; incompctlfunc = 0; uv = "reply"; |