zsh-completion: fix option ordering in set-x11-keymap (#3646)

This commit is contained in:
ntzrmtthihu777 2016-07-15 03:59:45 -05:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1071fd0823
commit b010a6a1ae
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ _localectl_set-x11-keymap() {
local _xorg_lst
_xorg_lst=${"$($commands[pkg-config] xkeyboard-config --variable=xkb_base)"}
_file=( ${(ps:\n\!:)"$(<$_xorg_lst/rules/xorg.lst)"} )
_layout=( ${${${(M)${(f)_file[1]}:# *}# }%% *} )
_model=( ${${${(M)${(f)_file[2]}:# *}# }%% *} )
_layout=( ${${${(M)${(f)_file[2]}:# *}# }%% *} )
_model=( ${${${(M)${(f)_file[1]}:# *}# }%% *} )
_variant=( ${${${(M)${(f)_file[3]}:# *}# }%% *} )
_options=( ${${${(M)${(f)_file[4]}:# *}# }%% *} )
#_layout=( ${(f)"$( echo $_file[1] | awk '/^ / {print $1}' )"} )