mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user