diff options
author | Ronan Pigott <ronan@rjp.ie> | 2022-08-22 16:19:10 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-08-24 14:32:04 -0700 |
commit | 7c2f0c037e924dd0a9bffd60187f7b2aea36c22f (patch) | |
tree | bd1fa92c2d0afe7bd7d86edf5867a638e2f232b9 | |
parent | ede7b915980fbc80eff80aa189c35ca016956c61 (diff) | |
download | bluez-7c2f0c037e924dd0a9bffd60187f7b2aea36c22f.tar.gz |
zsh: drop no more arguments message
This usage of the _message as a completion function is invalid, and
will result in an error if invoked by _arguments when the user has a
format style set for completion messages.
We can just drop this message, since it is not necessary.
Before:
$ zstyle ':completion:*:messages' format '%d'
$ bluetoothctl connect <TAB>
_message:zformat:42: invalid argument: -J
After:
$ zstyle ':completion:*:messages' format '%d'
$ bluetoothctl connect <TAB>
31:41:59:26:53:59 -- Bose QuietComfort 35
11:22:33:44:55:66 -- Pixel 5
-rw-r--r-- | completion/zsh/_bluetoothctl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/completion/zsh/_bluetoothctl b/completion/zsh/_bluetoothctl index bf35e503e..610ca2b8d 100644 --- a/completion/zsh/_bluetoothctl +++ b/completion/zsh/_bluetoothctl @@ -68,8 +68,7 @@ _bluetoothctl() { '(info)'{-m,--monitor}'[Enable monitor output]' \ + 'command' \ '(info):command:->command' \ - '(info):: :->argument' \ - ': :_message "no more arguments"' + '(info):: :->argument' if [[ $state == "command" ]]; then _describe -t commands 'command' all_commands |