diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-12-05 00:16:22 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-12-05 00:16:22 +0530 |
commit | b1e86d6feac5e2bb03298b67c4897045ebcba45d (patch) | |
tree | 0fac63486da14d32a742c6410339d210c50e01d2 /share/functions/fish_default_key_bindings.fish | |
parent | b9283d48b570e66650a6443bc7ebb8048f589546 (diff) |
Fixed test statement in binding for Alt-D
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 b62da166..37b36ef6 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -85,7 +85,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind \cu backward-kill-line bind \ed kill-word bind \cw backward-kill-word - bind \ed 'if test -z (commandline); dirh; commandline -f repaint; else; commandline -f kill-word; end' + bind \ed 'set -l cmd (commandline); if test -z "$cmd"; dirh; commandline -f repaint; else; commandline -f kill-word; end' bind \cd delete-or-exit # This will make sure the output of the current command is paged using the less pager when you press Meta-p |