Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Escape colon at mplayer -ss option



On 25 August 2011 06:42, eagletmt <eagletmt@xxxxxxxxx> wrote:
> ---
>  Completion/X/Command/_mplayer |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Completion/X/Command/_mplayer b/Completion/X/Command/_mplayer
> index 665f44e..3cb10d0 100644
> --- a/Completion/X/Command/_mplayer
> +++ b/Completion/X/Command/_mplayer
> @@ -77,7 +77,7 @@ _x_arguments -C -s \
>   '-sid[turn on DVD subtitles]:language id' \
>   '-speed[set playback speed rate]:playback speed rate' \
>   '-srate[specify frequency of audio playback]:frequency (Hz)' \
> -  '-ss[seek to given time position]:position (hh:mm\[\:ss\])' \
> +  '-ss[seek to given time position]:position (hh\:mm\[\:ss\])' \
>   '-sstep[specify time between displayed frames]:time (seconds)' \
>   -ssf:mode -stop_xscreensaver \
>   '-stereo:mode:((0\:stereo 1\:left\ channel 2\:right\ channel))' \

rudi_s mentioned on irc that the [] shouldn't be escaped, then I
noticed they're in the wrong place too, so I'll commit this too,

-  '-ss[seek to given time position]:position (hh\:mm\[\:ss\])' \
+  '-ss[seek to given time position]:position ([[hh\:]mm\:]ss[.sss])' \

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author