From 21b1bb3d4fe3f42c7ff44c7b38e81ee2df5439ca Mon Sep 17 00:00:00 2001 From: musou1500 Date: Sun, 22 Sep 2024 17:01:10 +0900 Subject: [PATCH] decode (ble-decode-key/bind): reference the argument to check the widget name (#506) --- src/decode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decode.sh b/src/decode.sh index c40827c8..481cbe3b 100644 --- a/src/decode.sh +++ b/src/decode.sh @@ -1774,7 +1774,7 @@ function ble-decode-key/bind { # Check existence of widget if local widget=${cmd%%[$_ble_term_IFS]*}; ! ble/is-function "$widget"; then local message="ble-bind: Unknown widget \`${widget#'ble/widget/'}'." - [[ $command == ble/widget/ble/widget/* ]] && + [[ $cmd == ble/widget/ble/widget/* ]] && message="$message Note: The prefix 'ble/widget/' is redundant." ble/util/print "$message" >&2 return 1