about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-17 12:45:59 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-17 12:45:59 +0000
commit97cb373efcab4b37950578949d6d1aa10002d415 (patch)
treeb7508f393eb39ff9da422dbe0bdc9b867705c027 /Src/Zle
parent8ac5e93d9ec9f3363465d44f89a035d1f9948d08 (diff)
downloadzsh-97cb373efcab4b37950578949d6d1aa10002d415.tar.gz
zsh-97cb373efcab4b37950578949d6d1aa10002d415.tar.xz
zsh-97cb373efcab4b37950578949d6d1aa10002d415.zip
zsh-workers/9774
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compresult.c3
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;
     }