From 34d512a677fe64e3e9aa59f0ee9f19c3c8226ee1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 21 Sep 2016 23:03:14 +0200 Subject: [PATCH] 39370: complete -w and -K options to zle following the widget name and numeric base to integer --- ChangeLog | 4 ++++ Completion/Zsh/Command/_typeset | 2 +- Completion/Zsh/Command/_zle | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 147b83a80..797fd9482 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2016-09-21 Oliver Kiddle + * 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 diff --git a/Completion/Zsh/Command/_typeset b/Completion/Zsh/Command/_typeset index 4e29c23e7..94f63cf7e 100644 --- a/Completion/Zsh/Command/_typeset +++ b/Completion/Zsh/Command/_typeset @@ -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]/}" ;& diff --git a/Completion/Zsh/Command/_zle b/Completion/Zsh/Command/_zle index f189b8fd9..e01d0a943 100644 --- a/Completion/Zsh/Command/_zle +++ b/Completion/Zsh/Command/_zle @@ -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*)