From 0a8d5cdbc860444c77de5880f2ff181a8ae33a83 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 28 Sep 2021 23:40:38 +0200 Subject: 49450: don't display explanation with compadd -x if any of -D, -A or -O are also used --- Src/Zle/compcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 131e86825..63136854e 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -2120,7 +2120,7 @@ addmatches(Cadata dat, char **argv) curexpl->always = !!dat->mesg; curexpl->count = curexpl->fcount = 0; curexpl->str = dupstring(dat->mesg ? dat->mesg : dat->exp); - if (dat->mesg) + if (dat->mesg && !dat->dpar && !dat->opar && !dat->apar) addexpl(1); } else curexpl = NULL; -- cgit 1.4.1