Set fish_key_bindings globally in binding functions

This should fix the tests.
This commit is contained in:
Fabian Homborg
2016-04-14 18:28:32 +02:00
parent ba5a22e2ce
commit e6ad48ea1b
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fish" -a mode
if not set -q mode[1]
if test "$fish_key_bindings" != "fish_default_key_bindings"
set fish_key_bindings fish_default_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
set -g fish_key_bindings fish_default_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
return
end
# Clear earlier bindings, if any