Skip to content

Commit

Permalink
decode (ble-decode-key/bind): reference the argument to check the wid…
Browse files Browse the repository at this point in the history
…get name (#506)
  • Loading branch information
musou1500 authored Sep 22, 2024
1 parent 670c7ea commit 21b1bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21b1bb3

Please sign in to comment.