mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
51320, 51383: fixes to prevent later reappearance of old attributes
Also associated test updates and a test fix for TERM=dumb.
This commit is contained in:
parent
d6b027c3c1
commit
6502d05897
6 changed files with 14 additions and 3 deletions
|
|
@ -261,7 +261,7 @@
|
|||
A1=${(%):-%s}
|
||||
A2=${(%):-%u}
|
||||
A3=${(%):-%s%u%s}
|
||||
[[ $A3 = $A1$A2 && -n $A1 && -n $A2 ]]
|
||||
[[ $A3 = $A1$A2 ]]
|
||||
0:Attribute optimisation - preserve initial disabling of attribute but drop useless later one
|
||||
|
||||
: ${(%):-%K{blue}}
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue