Remove obsolete optimization in default binding initialization

This special case was added in fb2ed355e (Improve fork reporting Save a
couple of forks during init, 2012-04-24) but the reason for it is gone.
This commit is contained in:
Johannes Altmanninger 2024-10-25 22:47:20 +02:00
parent dea7841611
commit aca8058717

View File

@ -180,12 +180,8 @@ end" >$__fish_config_dir/config.fish
end
set -g __fish_active_key_bindings "$fish_key_bindings"
set -g fish_bind_mode default
if test "$fish_key_bindings" = fish_default_key_bindings
# Redirect stderr per #1155
fish_default_key_bindings 2>/dev/null
else
$fish_key_bindings 2>/dev/null
end
# Redirect stderr per #1155
$fish_key_bindings 2>/dev/null
# Load user key bindings if they are defined
if functions --query fish_user_key_bindings >/dev/null
fish_user_key_bindings 2>/dev/null