From 7a5b85292a73b384a88a17a2b327539c608a4349 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 24 Oct 2013 17:49:37 +0100 Subject: 31882: Insulate completion widget against environment. Prevents change in pipestatus leaking back out. --- Src/Zle/compcore.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 39d41bdb5..5c5628a8d 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -826,7 +826,6 @@ callcompfunc(char *s, char *fn) sfcontext = SFC_CWIDGET; NEWHEAPS(compheap) { LinkList largs = NULL; - int olv = lastval; if (*cfargs) { char **p = cfargs; @@ -836,9 +835,7 @@ callcompfunc(char *s, char *fn) while (*p) addlinknode(largs, dupstring(*p++)); } - doshfunc(shfunc, largs, 0); - cfret = lastval; - lastval = olv; + cfret = doshfunc(shfunc, largs, 1); } OLDHEAPS; sfcontext = osc; endparamscope(); -- cgit 1.4.1