mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 04:30:27 +01:00
Paul Ackersviller: 26959: delay before removing test modules
users/14118: fix test and assignment in prompt_special_chars
This commit is contained in:
parent
feb2df4b63
commit
49db32f2b5
3 changed files with 12 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
typeset -gA schars
|
||||
|
||||
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *UTF-8* ]]; then
|
||||
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *(UTF-8|utf8)* ]]; then
|
||||
schars[300]=$'\xe2\x94\x94'
|
||||
schars[304]=$'\xe2\x94\x8c'
|
||||
schars[332]=$'\xe2\x94\x8c'
|
||||
|
|
@ -20,6 +20,6 @@ if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *UTF-8* ]]; then
|
|||
schars[260]=$'\xe2\x96\x91'
|
||||
else
|
||||
for code in 300 304 332 333 371 372 262 261 260; do
|
||||
eval "char[$code]=\$'\\$code'"
|
||||
eval "schars[$code]=\$'\\$code'"
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue