zsh: drop no more arguments message
authorRonan Pigott <ronan@rjp.ie>
Mon, 22 Aug 2022 23:19:10 +0000 (16:19 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitd51942da8756e2bc1d58308c860100d423ecb988
treed6dfec16cdd16908c348b21c9d4a55e909c590b5
parentfb7827a4a6655e3575342d78f18b25701d289186
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
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
completion/zsh/_bluetoothctl