public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] zsh: drop no more arguments message
@ 2022-08-22  2:32 Ronan Pigott
  2022-08-22  4:45 ` [BlueZ] " bluez.test.bot
  2022-08-22 22:55 ` [PATCH BlueZ] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 6+ messages in thread
From: Ronan Pigott @ 2022-08-22  2:32 UTC (permalink / raw)
  To: linux-bluetooth

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.
---
 completion/zsh/_bluetoothctl | 3 +--
 1 file changed, 1 insertion(+), 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
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-24 21:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-22  2:32 [PATCH BlueZ] zsh: drop no more arguments message Ronan Pigott
2022-08-22  4:45 ` [BlueZ] " bluez.test.bot
2022-08-22 22:55 ` [PATCH BlueZ] " Luiz Augusto von Dentz
2022-08-22 23:19   ` [PATCH BlueZ v2] " Ronan Pigott
2022-08-23  0:26     ` [BlueZ,v2] " bluez.test.bot
2022-08-24 21:40     ` [PATCH BlueZ v2] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox