Skip to content

Commit 7bf0500

Browse files
LangLangBartOliver Kiddle
authored andcommitted
github #149: improve voice name parsing in say completion
1 parent a3547fd commit 7bf0500

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
2025-10-31 Oliver Kiddle <[email protected]>
22

3+
* LangLangbart: github #149: Completion/Darwin/Command/_say:
4+
improve voice name parsing in say completion
5+
36
* 54013: Src/builtin.c, Src/jobs.c: add a range check on signal
47
numbers passed to trap
58

Completion/Darwin/Command/_say

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ case $state in
7777
;;
7878
voices)
7979
tmp=( ${(f)"$( _call_program voices $words[1] -v '\?' )"} )
80-
tmp=( ${tmp%%[[:space:]](#c2,)*} )
80+
tmp=( ${tmp%%[[:space:]]##[[:lower:]]##[_-][[:alnum:]]##*} )
8181
_values voice $tmp && ret=0
8282
;;
8383
esac

0 commit comments

Comments
 (0)