diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-04-13 19:46:18 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-04-14 20:57:04 -0700 |
commit | 5f849d02646b60943557b00b51a0e592c2387959 (patch) | |
tree | 872baacf4db97456bb596ce19be61fefcc9549c1 /share/functions/fish_default_key_bindings.fish | |
parent | 671c0515d4212f3cf37eccc080527c42eec7d060 (diff) |
provide a better experience when user presses \cC
Fixes #2904
Diffstat (limited to 'share/functions/fish_default_key_bindings.fish')
-rw-r--r-- | share/functions/fish_default_key_bindings.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 8d86c7ee..0f0d578c 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -109,7 +109,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind $argv \el __fish_list_current_token bind $argv \ew 'set tok (commandline -pt); if test $tok[1]; echo; whatis $tok[1]; commandline -f repaint; end' bind $argv \cl 'clear; commandline -f repaint' - bind $argv \cc 'commandline ""' + bind $argv \cc __fish_cancel_commandline bind $argv \cu backward-kill-line bind $argv \cw backward-kill-path-component bind $argv \ed 'set -l cmd (commandline); if test -z "$cmd"; echo; dirh; commandline -f repaint; else; commandline -f kill-word; end' |