mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 16:39:38 +08:00

The vi-bindings function would unconditionally erase all bindings, making it impossible to call it last. This would disable the mode-indicator (and in future also the cursor). Make it so any argument to fish_vi_key_bindings stops it from erasing bindings. It would also be possible to demand an argument to erase (or to erase as a separate step). but the usual case seems to be _switching_ to a set of bindings.