fix handling of symbolic port names in zsh completion

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/500>
This commit is contained in:
pseyfert 2021-02-09 23:17:13 +00:00 committed by PulseAudio Marge Bot
parent de8b7c0d8f
commit d74c47340a

View file

@ -148,7 +148,7 @@ _ports() {
if [[ $line != [[:blank:]] && if [[ $line != [[:blank:]] &&
$line != (*Part?of*|*Properties:*|*device.icon_name*) ]]; then $line != (*Part?of*|*Properties:*|*device.icon_name*) ]]; then
_port_name=${line%%: *} _port_name=${line%%: *}
_port_name=${_port_name//[[:blank:]]/} _port_name=${_port_name##[[:blank:]]#}
_port_description=${line#*: } _port_description=${line#*: }
_port_list+=($_port_name:$_port_description) _port_list+=($_port_name:$_port_description)
fi fi