about summary refs log tree commit diff
path: root/Src/Zle/complist.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-09 08:30:25 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-09 08:30:25 +0000
commit774a57ae1451070564a76c85f179d7a3f847b7ca (patch)
tree7aef68628522b48e86bf5fc0b80498b56dd3b7c9 /Src/Zle/complist.c
parent3a544165456a0cb16d36bc0c7b19d7d787c890d9 (diff)
downloadzsh-774a57ae1451070564a76c85f179d7a3f847b7ca.tar.gz
zsh-774a57ae1451070564a76c85f179d7a3f847b7ca.tar.xz
zsh-774a57ae1451070564a76c85f179d7a3f847b7ca.zip
zsh-workers/7734
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r--Src/Zle/complist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index 8bd66a407..a1835655d 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -344,7 +344,7 @@ complistmatches(Hookdef dummy, Chdata dat)
 		nl = !!strchr(*pp++, '\n');
 
 	    pp = g->ylist;
-	    if (nl) {
+	    if (nl || !pp[1]) {
 		/* Yup, there are newlines, count lines. */
 		char *nlptr, *sptr;