Skip to content

Commit d8cadfe

Browse files
committed
fix(xfreerdp): support the new form of the option /list:kbd
1 parent f75e488 commit d8cadfe

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

completions/xfreerdp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ _comp_cmd_xfreerdp()
3030

3131
case $cur in
3232
/kbd:*)
33-
_comp_compgen -c "${cur#/kbd:}" split -- "$("$1" /kbd-list |
34-
_comp_awk '/^0x/ { print $1 }')"
33+
local kbd_list
34+
kbd_list=$("$1" /kbd-list 2>/dev/null) ||
35+
kbd_list=$("$1" /list:kbd 2>/dev/null)
36+
_comp_compgen -c "${cur#/kbd:}" split -- "$(
37+
_comp_awk '/^0x/ { print $1 }' <<<"$kbd_list"
38+
)"
3539
return
3640
;;
3741
/bpp:*)

0 commit comments

Comments
 (0)