From e97a616ffaad7bdb82d5d388dd54a6bacaac3dcf Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 5 Oct 2025 11:51:50 +0200 Subject: [PATCH] completions/bind: don't suggest key names if --function-names is given This combination makes no sense and should be an error. (Also the short options and --key-names were missing, so this was quite inconsistent.) See #11864 --- share/completions/bind.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/bind.fish b/share/completions/bind.fish index 565a516ca..9e1283721 100644 --- a/share/completions/bind.fish +++ b/share/completions/bind.fish @@ -60,7 +60,7 @@ complete -c bind -n __fish_bind_test2 -a '(bind --function-names)' -d 'Function function __fish_bind_complete argparse M/mode= m/sets-mode= preset user s/silent \ - a/all function-names list-modes e/erase -- (commandline -xpc)[2..] 2>/dev/null + a/all e/erase -- (commandline -xpc)[2..] 2>/dev/null or return 1 set -l token (commandline -ct) if test (count $argv) = 0 && set -l prefix (string match -r -- '(.*,)?(ctrl-|alt-|shift-|super-)*' $token)