From a6cb92c74a802ed2205487f59a324d306b8123da Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Sat, 14 Dec 2019 14:37:36 -0500 Subject: zsh completion: fix handling of aliases that are listed without -- Pretty sure they used to all have --, but I guess it was changed at some point. More incentive to do this completion stuff in a more structured way. --- etc/_mpv.zsh | 4 ++-- 1 file 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 -- cgit v1.2.3