Don't silence errors in fish_key_bindings/fish_user_key_bindings

We silence erros from the key binding function since 2c5151bb78 (Fix
bug in key binding code causing unneeded error messages, 2007-10-31).

Reasons are
1. fish_key_bindings is not a valid function
2. fish_key_bindings runs "bind -k" for things that are not supported (#1155)

Both reasons are obsolete:
1. we already check that earlier
2. "-k" is gone. (Also, we could have silenced "bind -k" invocations instead).
This commit is contained in:
Johannes Altmanninger
2025-12-11 10:38:26 +01:00
parent 7fc27e9e54
commit d1c7a4b6e7

View File

@@ -117,11 +117,10 @@ end" >$__fish_config_dir/config.fish
end
set -g __fish_active_key_bindings "$fish_key_bindings"
set -g fish_bind_mode default
# Redirect stderr per #1155
$fish_key_bindings 2>/dev/null
$fish_key_bindings
# Load user key bindings if they are defined
if functions --query fish_user_key_bindings >/dev/null
fish_user_key_bindings 2>/dev/null
fish_user_key_bindings
end
end