summaryrefslogtreecommitdiffstats
path: root/Test/X04zlehighlight.ztst
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-02-09 00:10:19 +0100
committerOliver Kiddle <opk@zsh.org>2023-02-09 00:10:19 +0100
commit6502d05897a7d9441fcabfd24f203cffe4da59aa (patch)
tree2d22e60ca6103d359476f61abd092699ff633831 /Test/X04zlehighlight.ztst
parent51350: ${(S)...//#%...} didn't match the whole string (diff)
downloadzsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.tar
zsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.tar.gz
zsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.tar.bz2
zsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.tar.lz
zsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.tar.xz
zsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.tar.zst
zsh-6502d05897a7d9441fcabfd24f203cffe4da59aa.zip
51320, 51383: fixes to prevent later reappearance of old attributes
Also associated test updates and a test fix for TERM=dumb.
Diffstat (limited to 'Test/X04zlehighlight.ztst')
-rw-r--r--Test/X04zlehighlight.ztst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/X04zlehighlight.ztst b/Test/X04zlehighlight.ztst
index 296635bf5..87a59fde5 100644
--- a/Test/X04zlehighlight.ztst
+++ b/Test/X04zlehighlight.ztst
@@ -40,7 +40,7 @@
# Fix e^Mexit - match ((?)\r(?)), if \2 == \3, then replace with \2
# otherwise replace with \1 stripped out of leading/trailing [[:space:]]
REPLY=${REPLY//(#b)((?(#c0,1))$cm(?(#c0,1)))/${${${(M)match[2]:#${match[3]}}:+${match[2]}}:-${${match[1]##[[:space:]]##}%%[[:space:]]##}}}
- [[ -n "$REPLY" ]] && print -r -- ${${REPLY%%[[:space:]]##}##[[:space:]]##}
+ [[ -n "$REPLY" ]] && print -r -- ${${REPLY%%${~cm}*}##[[:space:]]##}
done
}
zpty_stop() {