Skip to content

Commit 8a76f3d

Browse files
committed
feat(xrandr): comma separated --setmonitor third argument
1 parent 3c33289 commit 8a76f3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

completions/xrandr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ _comp_cmd_xrandr()
149149
if ((cword >= 3)); then
150150
case "${words[cword - 3]}" in
151151
--setmonitor)
152-
_comp_cmd_xrandr__compgen_outputs "$1"
153-
_comp_compgen -a -- -W "none"
154-
# TODO: the third argument is actually a comma-separated list
152+
_comp_compgen -c "${cur##*,}" -i xrandr outputs "$1"
153+
_comp_compgen -ac "${cur##*,}" -- -W "none"
154+
_comp_delimited , -W '"${COMPREPLY[@]}"'
155155
return
156156
;;
157157
esac

0 commit comments

Comments
 (0)