1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 19:20:53 +02:00

39370: complete -w and -K options to zle following the widget name and numeric base to integer

This commit is contained in:
Oliver Kiddle 2016-09-21 23:03:14 +02:00
parent e8720bbd8b
commit 34d512a677
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2016-09-21 Oliver Kiddle <opk@zsh.org>
* 39370: Completion/Zsh/Command/_typeset,
Completion/Zsh/Command/_zle: complete -w and -K options to zle
following the widget name and numeric base to integer
* 39407: Completion/Linux/Command/_cpupower: cleanup minor
issues; updated through to version 4.8

View file

@ -57,7 +57,7 @@ case ${service} in
;;
integer)
use="Hghilprtux"
allargs[i]='-i[specify arithmetic base for output]' \
allargs[i]='-i+[specify arithmetic base for output]:: :_guard "[0-9]#" base' \
;;
readonly) use="${use/r/}" ;;
local) use="${use/[fkz]/}" ;&

View file

@ -45,6 +45,8 @@ case "$state[1]" in
_arguments \
'(-N)-n[numeric prefix]:number:' \
'(-n)-N[reset numeric prefix]' \
'-K[specify temporary keymap]:keymap:compadd -a keymaps' \
'-w[set $WIDGET to reflect widget being called]' \
'(-)*:widget arguments: ' && ret=0
;;
(widget*)