1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

22556: Multibyte separators and delimiters

This commit is contained in:
Peter Stephenson 2006-07-24 22:00:19 +00:00
parent 6ca7b6abdf
commit 50e9ab122b
13 changed files with 740 additions and 231 deletions

View file

@ -128,7 +128,7 @@
# 'm Macron
# '' Acute
emulate -LR zsh
emulate -L zsh
setopt cbases extendedglob printeightbit
local accent basechar ochar error
@ -165,7 +165,8 @@ else
fi
local -A charmap
charmap=(${=zsh_accented_chars[$accent]})
# just in case someone is monkeying with IFS...
charmap=(${(s. .)zsh_accented_chars[$accent]})
if [[ ${#charmap} -eq 0 || -z $charmap[$basechar] ]]; then
$error "Combination ${basechar}${accent} is not available."