github #149: improve voice name parsing in say completion

This commit is contained in:
LangLangbart
2025-10-31 05:47:57 +01:00
committed by Oliver Kiddle
parent a3547fd4c1
commit 7bf0500ddf
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2025-10-31 Oliver Kiddle <opk@zsh.org>
* LangLangbart: github #149: Completion/Darwin/Command/_say:
improve voice name parsing in say completion
* 54013: Src/builtin.c, Src/jobs.c: add a range check on signal
numbers passed to trap

View File

@@ -77,7 +77,7 @@ case $state in
;;
voices)
tmp=( ${(f)"$( _call_program voices $words[1] -v '\?' )"} )
tmp=( ${tmp%%[[:space:]](#c2,)*} )
tmp=( ${tmp%%[[:space:]]##[[:lower:]]##[_-][[:alnum:]]##*} )
_values voice $tmp && ret=0
;;
esac