From 2cf6032a301d994c578e5e1942c4815e85651647 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 11 Feb 2021 19:13:47 -0800 Subject: 47997: Disable XTRACE around user-defined completion widgets. --- Src/Zle/compcore.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 958fef8e7..5162d97dc 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -821,6 +821,7 @@ callcompfunc(char *s, char *fn) sfcontext = SFC_CWIDGET; NEWHEAPS(compheap) { LinkList largs = NULL; + int oxt = isset(XTRACE); if (*cfargs) { char **p = cfargs; @@ -830,7 +831,9 @@ callcompfunc(char *s, char *fn) while (*p) addlinknode(largs, dupstring(*p++)); } + opts[XTRACE] = 0; cfret = doshfunc(shfunc, largs, 1); + opts[XTRACE] = oxt; } OLDHEAPS; sfcontext = osc; endparamscope(); -- cgit 1.4.1