summaryrefslogtreecommitdiffstats
path: root/etc/_mpv.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/_mpv.zsh')
-rw-r--r--etc/_mpv.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/_mpv.zsh b/etc/_mpv.zsh
index 7837d60411..dff2a61629 100644
--- a/etc/_mpv.zsh
+++ b/etc/_mpv.zsh
@@ -72,10 +72,10 @@ function generate_arguments {
_mpv_completion_arguments+="$name"
- elif [[ $desc =~ $'^alias for --([^ \t]+)' ]]; then
+ elif [[ $desc =~ $'^alias for (--)?([^ \t]+)' ]]; then
# Save this for later; we might not have parsed the target option yet
- option_aliases+="$name $match[1]"
+ option_aliases+="$name $match[2]"
else