[Bash-completion-commits] [SCM] bash-completion branch, master, updated. d9cce3856784dae5ef57474b39b3472567473544

Ville Skyttä ville.skytta at iki.fi
Thu Jun 18 17:41:24 UTC 2009


The following commit has been merged in the master branch:
commit d9cce3856784dae5ef57474b39b3472567473544
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Jun 18 20:41:15 2009 +0300

    Eliminate redundant code.

diff --git a/contrib/mplayer b/contrib/mplayer
index 444fe71..4681469 100644
--- a/contrib/mplayer
+++ b/contrib/mplayer
@@ -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

-- 
bash-completion



More information about the Bash-completion-commits mailing list