From aca8058717544a926384fd5e76cb389ae30e1aec Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 25 Oct 2024 22:47:20 +0200 Subject: [PATCH] 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. --- share/functions/__fish_config_interactive.fish | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index edf6c733a..50bd5d891 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -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