From facff10b116622e8cb409d5b1aa6eaa7574f949d Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 19 Jul 2001 08:40:36 +0000 Subject: yet another followup to 15497; make _describe filter out non-matching strings before calling compdescribe, otherwise some matches will be hiddens (15415) --- Src/Zle/computil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/Zle/computil.c') diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 32147dd52..299f3ca98 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -64,7 +64,7 @@ struct cdset { /* Maximum string length when used with descriptions. */ -#define CD_MAXLEN 20 +#define CD_MAXLEN 30 static struct cdstate cd_state; @@ -171,8 +171,8 @@ cd_calc() } } } - if (cd_state.pre > 20) - cd_state.pre = 20; + if (cd_state.pre > CD_MAXLEN) + cd_state.pre = CD_MAXLEN; } /* Initialisation. Store and calculate the string and matches and so on. */ -- cgit v1.2.3