Eliminate redundant code.
This commit is contained in:
parent
8b2416c180
commit
d9cce38567
@ -22,11 +22,7 @@ _mplayer()
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
case "$prev" in
|
||||
-@(ac|afm|vc|vfm|ao|vo|vop|fstype|demuxer|vf|af))
|
||||
_mplayer_options_list $cmd $prev
|
||||
return 0
|
||||
;;
|
||||
-@(oac|ovc|of))
|
||||
-@([av][cfo]|[av]fm|vop|fstype|demuxer|o[av]c|of|profile))
|
||||
_mplayer_options_list $cmd $prev
|
||||
return 0
|
||||
;;
|
||||
@ -250,10 +246,6 @@ _mplayer()
|
||||
COMPREPLY=( $( compgen -W 'force= list=' -- $cur ) )
|
||||
return 0
|
||||
;;
|
||||
-profile)
|
||||
_mplayer_options_list $cmd $prev
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
|
Loading…
x
Reference in New Issue
Block a user