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/zle_main.c | |
parent | cf10e6052445bc5460e86fc9621dec4cd4b9cb02 (diff) | |
download | zsh-63acd1060174cd9d3595abb3fe71174c595e8131.tar.gz zsh-63acd1060174cd9d3595abb3fe71174c595e8131.tar.xz zsh-63acd1060174cd9d3595abb3fe71174c595e8131.zip |
zsh-workers/9332
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r-- | Src/Zle/zle_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index 722612421..abf870655 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -649,9 +649,9 @@ execzlefunc(Thingy func, char **args) lastcmd = wflags; r = 1; } else { - List l = getshfunc(w->u.fnnam); + Eprog prog = getshfunc(w->u.fnnam); - if(l == &dummy_list) { + if(prog == &dummy_eprog) { /* the shell function doesn't exist */ char *nm = niceztrdup(w->u.fnnam); char *msg = tricat("No such shell function `", nm, "'"); @@ -673,7 +673,7 @@ execzlefunc(Thingy func, char **args) startparamscope(); makezleparams(0); sfcontext = SFC_WIDGET; - doshfunc(w->u.fnnam, l, largs, 0, 0); + doshfunc(w->u.fnnam, prog, largs, 0, 0); ret = lastval; lastval = olv; sfcontext = osc; |