diff options
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r-- | Src/Zle/compresult.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |