diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-29 12:42:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-29 12:42:59 +0000 |
commit | cd38cd40f7f81bee21c14157fc45540d538965bd (patch) | |
tree | 4bbc9d4d36187365d498ee632d9715cc0316a110 /Src/Zle/compresult.c | |
parent | d22ee9a5ba4fcedc63b63a0ab904b86471fcad56 (diff) | |
download | zsh-cd38cd40f7f81bee21c14157fc45540d538965bd.tar.gz zsh-cd38cd40f7f81bee21c14157fc45540d538965bd.tar.xz zsh-cd38cd40f7f81bee21c14157fc45540d538965bd.zip |
matching bugs with patterns with two anchors (11634)
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 531017afb..c55b65b0a 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -656,7 +656,8 @@ do_ambiguous(void) /* Sometimes the different match specs used may result in a cline * that gives an empty string. If that happened, we re-insert the * old string. Unless there were matches added with -U, that is. */ - if (!(lastend - wb) && !hasunmatched) { + + if (lastend < we && !lenchanged && !hasunmatched) { cs = wb; foredel(lastend - wb); inststrlen(old, 0, we - wb); |