about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-19 08:40:36 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-19 08:40:36 +0000
commitfacff10b116622e8cb409d5b1aa6eaa7574f949d (patch)
treecf1f9806ba88aafe762663f8c4b2b1cec44c59b9 /Src
parent6a3e89d5391073cf51c459e7ab7b5c1e3b4528d4 (diff)
downloadzsh-facff10b116622e8cb409d5b1aa6eaa7574f949d.tar.gz
zsh-facff10b116622e8cb409d5b1aa6eaa7574f949d.tar.xz
zsh-facff10b116622e8cb409d5b1aa6eaa7574f949d.zip
yet another followup to 15497; make _describe filter out non-matching strings before calling compdescribe, otherwise some matches will be hiddens (15415)
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/computil.c6
1 files changed, 3 insertions, 3 deletions
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. */