zsh-completion: complete --gpu-context

This is made by possible by 96e1f1dfa5 standardizing --gpu-context's
help output. This changes the check to complete any Object settings list
so it will automatically work with future options of this kind.
This commit is contained in:
Guido Cella 2024-04-26 21:01:01 +02:00 committed by Kacper Michajłow
parent fbfc9d22c7
commit 2f4c550b4b
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ function _mpv_generate_arguments {
entry+='->files'
elif [[ $name == (ao|vo|af|vf|profile|audio-device|vulkan-device) ]]; then
elif [[ $desc = 'Object settings list'* || $name == (profile|audio-device|vulkan-device) ]]; then
entry+="->parse-help-$name"