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 --- ChangeLog | 5 +++++ Src/Zle/compcore.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b1f295bd7..a84a66882 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-09-28 Oliver Kiddle + + * 49450: Src/Zle/compcore.c: don't display explanation with + compadd -x if any of -D, -A or -O are also used + 2021-09-26 Daniel Shahaf * unposted: Doc/Zsh/contrib.yo, Doc/Zsh/mod_curses.yo, 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