mplayer: run mplayer with -nomsgmodule -nomsgcolor
this fixes completion if user has msgmodule and/or msgcolor enabled in the config file.
This commit is contained in:
parent
7b67991c18
commit
b0c9212c54
@ -4,7 +4,7 @@ have mplayer && {
|
||||
_mplayer_options_list()
|
||||
{
|
||||
cur=${cur%\\}
|
||||
COMPREPLY=( $( compgen -W "$( $1 $2 help 2>/dev/null | \
|
||||
COMPREPLY=( $( compgen -W "$( $1 -nomsgcolor -nomsgmodule $2 help 2>/dev/null | \
|
||||
sed -e '1,/^Available/d' | awk '{print $1}' | \
|
||||
sed -e 's/:$//' -e 's/^'${2#-}'$//' -e 's/<.*//' )" -- "$cur" ) )
|
||||
}
|
||||
@ -230,7 +230,7 @@ _mplayer()
|
||||
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '$( $cmd -list-options 2>/dev/null | \
|
||||
COMPREPLY=( $( compgen -W '$( $cmd -nomsgcolor -nomsgmodule -list-options 2>/dev/null | \
|
||||
sed -ne '1,/^[[:space:]]*Name/d' \
|
||||
-e "s/^[[:space:]]*/-/" -e "s/[[:space:]:].*//" \
|
||||
-e "/^-\(Total\|.*\*\)\{0,1\}$/!p" )' -- "$cur" ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user