mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Run fish_indent on default_key_bindings
This commit is contained in:
parent
7d1f45e25f
commit
53c506f109
1 changed files with 131 additions and 130 deletions
|
@ -3,7 +3,8 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis
|
||||||
if not set -q argv[1]
|
if not set -q argv[1]
|
||||||
if test "$fish_key_bindings" != "fish_default_key_bindings"
|
if test "$fish_key_bindings" != "fish_default_key_bindings"
|
||||||
# Allow the user to set the variable universally
|
# Allow the user to set the variable universally
|
||||||
set -q fish_key_bindings; or set -g fish_key_bindings
|
set -q fish_key_bindings
|
||||||
|
or set -g fish_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 fish_key_bindings fish_default_key_bindings # This triggers the handler, which calls us again and ensures the user_key_bindings are executed
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue