From 97cb373efcab4b37950578949d6d1aa10002d415 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 17 Feb 2000 12:45:59 +0000 Subject: zsh-workers/9774 --- Src/Zle/compresult.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 192c0921f..c66557f57 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -64,7 +64,8 @@ cut_cline(Cline l) q = p; } if (!e && q && !q->orig && !q->olen && (q->flags & CLF_MISS) && - !(q->flags & CLF_MATCHED) && (q->word ? q->wlen : q->llen) < 3) { + (!(q->flags & CLF_MATCHED) || (!q->prefix && !q->suffix)) && + (q->word ? q->wlen : q->llen) < 3) { q->word = q->line = NULL; q->wlen = q->llen = 0; } -- cgit 1.4.1