From b1e86d6feac5e2bb03298b67c4897045ebcba45d Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Wed, 5 Dec 2012 00:16:22 +0530 Subject: [PATCH] Fixed test statement in binding for Alt-D Fix for https://github.com/fish-shell/fish-shell/issues/421 --- share/functions/fish_default_key_bindings.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index b62da166e..37b36ef67 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