diff options
Diffstat (limited to 'Src/Zle/complist.c')
-rw-r--r-- | Src/Zle/complist.c | 2 |
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; |