From patchwork Mon Aug 22 02:32:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ronan Pigott X-Patchwork-Id: 12950141 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C8FBC32774 for ; Mon, 22 Aug 2022 02:33:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231872AbiHVCdL (ORCPT ); Sun, 21 Aug 2022 22:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbiHVCdI (ORCPT ); Sun, 21 Aug 2022 22:33:08 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0D5223156 for ; Sun, 21 Aug 2022 19:33:06 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjp.ie; s=key1; t=1661135584; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=U9QwhyOc9y/8tJVF9wA4cQnW03q5qtqDDiW1VE/V6yc=; b=MENcWjtHctpk2Zt2cFReD8KygjYsh54IgaPUJfpOZaRTUZoJlSIi9UcO4zhn5IrAfqoP2M DVUBViAGDBuIvlE5tFtKgbBY1lBcTb2U+D1wAH5tN7C8RHqKYefRqQpf3Q1mXWVd9jpJW3 j/5iqLUTS5FZEJusTQlXKnrqnW/aP8U= From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] zsh: drop no more arguments message Date: Sun, 21 Aug 2022 19:32:43 -0700 Message-Id: <20220822023242.18162-1-ronan@rjp.ie> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rjp.ie Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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