diff options
Diffstat (limited to 'Completion/X/_x_window')
-rw-r--r-- | Completion/X/_x_window | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/X/_x_window b/Completion/X/_x_window index 1862db9a7..24d6048a7 100644 --- a/Completion/X/_x_window +++ b/Completion/X/_x_window @@ -2,17 +2,17 @@ local list expl -_wanted windows || return 1 +_tags windows || return 1 list=( "${(@)${(M@)${(@f)$(_call windows xwininfo -root -tree)}:#[ ]#0x[0-9a-f]# \"*}##[ ]#}" ) if [[ "$1" = -n ]]; then shift - _all_labels windows expl 'window name' \ + _wanted windows expl 'window name' \ compadd "$@" -d list - "${(@)${(@)list#*\"}%%\"*}" else [[ "$1" = - ]] && shift - _all_labels windows expl 'window ID' compadd "$@" -d list - "${(@)list%% *}" + _wanted windows expl 'window ID' compadd "$@" -d list - "${(@)list%% *}" fi |