Skip to content

Commit a72bb91

Browse files
scopakinomyoga
andauthored
fixup! refactor(xrandr): internal helpers to generators
Co-authored-by: Koichi Murase <[email protected]>
1 parent 2b59545 commit a72bb91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

completions/xrandr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ _comp_cmd_xrandr__compgen_outputs()
77

88
_comp_cmd_xrandr__compgen_monitors()
99
{
10-
_comp_compgen_split "$(
10+
_comp_compgen_split -- "$(
1111
"$1" --listmonitors 2>/dev/null |
1212
command sed -ne 's/.* [0-9]*: [+\*]*\([^ ]*\).*/\1/p'
1313
)"
1414
}
1515

1616
_comp_cmd_xrandr__compgen_providers()
1717
{
18-
_comp_compgen_split "$("$1" --listproviders 2>/dev/null |
18+
_comp_compgen_split -- "$("$1" --listproviders 2>/dev/null |
1919
command sed -ne "s/.*cap:.*$2.* name:\([^ ]*\).*/\1/p")"
2020
}
2121

2222
_comp_cmd_xrandr__compgen_modes()
2323
{
24-
_comp_compgen_split "$(
24+
_comp_compgen_split -- "$(
2525
"$1" -q 2>/dev/null | command sed \
2626
-e "1,/^$2 / d" \
2727
-e '/connected/,$ d' \
@@ -33,7 +33,7 @@ _comp_cmd_xrandr__compgen_modes()
3333

3434
_comp_cmd_xrandr__compgen_all_modes()
3535
{
36-
_comp_compgen_split "$(
36+
_comp_compgen_split -- "$(
3737
"$1" -q 2>/dev/null | command sed \
3838
-e '/^[^[:space:]].*/ d' \
3939
-e '/^[[:space:]]*h: / d' \

0 commit comments

Comments
 (0)