diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-16 16:13:05 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-16 16:13:05 +0000 |
commit | 5d255f819c0e91496bfd7763056b43e41722fba5 (patch) | |
tree | 0f74df53637493f2d5db575b214c279878b1894c /Src/Zle | |
parent | 20c9bfe78dae52569f241752306a2494f5624f63 (diff) | |
download | zsh-5d255f819c0e91496bfd7763056b43e41722fba5.tar.gz zsh-5d255f819c0e91496bfd7763056b43e41722fba5.tar.xz zsh-5d255f819c0e91496bfd7763056b43e41722fba5.zip |
zsh-workers/7862
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_tricky.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 51d331f4a..36473918b 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -7035,7 +7035,9 @@ matcheq(Cmatch a, Cmatch b) matchstreq(a->ppre, b->ppre) && matchstreq(a->psuf, b->psuf) && matchstreq(a->suf, b->suf) && - !a->disp && !b->disp && matchstreq(a->str, b->str); + ((!a->disp && !b->disp && matchstreq(a->str, b->str)) || + (a->disp && b->disp && !strcmp(a->disp, b->disp) && + matchstreq(a->str, b->str))); } /* Make an array from a linked list. The second argument says whether * |