mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
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:
parent
483e9fdea2
commit
745bceb9d8
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue