summaryrefslogtreecommitdiff
path: root/Src/Zle/compmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/compmatch.c')
-rw-r--r--Src/Zle/compmatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Zle/compmatch.c b/Src/Zle/compmatch.c
index e9c6721ba..fc1e6fb54 100644
--- a/Src/Zle/compmatch.c
+++ b/Src/Zle/compmatch.c
@@ -2076,7 +2076,8 @@ join_clines(Cline o, Cline n)
if ((diff = sub_join(o, n, tn, 0))) {
o->flags = (o->flags & ~CLF_MISS) | of;
- if (po) {
+ if (po && po->prefix &&
+ cmp_anchors(o, po, 0)) {
po->flags |= CLF_MISS;
po->max += diff;
}