fix backspace/del vi mode bindings

The recent refactoring to separate default (emacs) from vi key bindings
overlooked adding `\cH` bindings to vi mode. This also fixes the
behavior of the [del] key bindings (\x7F).

Fixes #3653
This commit is contained in:
Kurtis Rader 2016-12-16 21:52:58 -08:00
parent 483e9fdea2
commit 745bceb9d8

View file

@ -118,8 +118,10 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
# Backspace deletes a char in insert mode, but not in normal/default mode.
bind -M insert -k backspace backward-delete-char
bind -M default -k backspace backward-char
bind -M insert \x7f backward-delete-char
bind -M default \x7f backward-char
bind -M insert \ch backward-delete-char
bind -M default \ch backward-char
bind -M insert \x7f delete-char
bind -M default \x7f delete-char
bind \e\[3\;2~ backward-delete-char # Mavericks Terminal.app shift-delete
bind dd kill-whole-line