mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Minor tweaks to initial keybinding load
Remove comment that AFAICT is not true anymore. Ensure someone setting __fish_active_key_bindings as a universal variable doesn't screw up the initial keybinding load.
This commit is contained in:
parent
bae2b2cc47
commit
4ba95ad1c3
1 changed files with 2 additions and 2 deletions
|
@ -220,10 +220,9 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
end
|
||||
set -g __fish_active_key_bindings "$fish_key_bindings"
|
||||
set -g fish_bind_mode default
|
||||
# Do something nasty to avoid two forks
|
||||
if test "$fish_key_bindings" = fish_default_key_bindings
|
||||
fish_default_key_bindings
|
||||
#Load user key bindings if they are defined
|
||||
# Load user key bindings if they are defined
|
||||
if functions --query fish_user_key_bindings > /dev/null
|
||||
fish_user_key_bindings
|
||||
end
|
||||
|
@ -233,6 +232,7 @@ function __fish_config_interactive -d "Initializations that should be performed
|
|||
end
|
||||
|
||||
# Load key bindings. Redirect stderr per #1155
|
||||
set -g __fish_active_key_bindings
|
||||
__fish_reload_key_bindings ^ /dev/null
|
||||
|
||||
# Repaint screen when window changes size
|
||||
|
|
Loading…
Reference in a new issue