From 1a68698d76d3a07b5c2c41621ca4feb51ec9afdc Mon Sep 17 00:00:00 2001 From: John Nguyen Date: Mon, 12 Jun 2017 02:24:45 -0700 Subject: [PATCH] [fish] Fix completion for current dir search (#946) If "." is given as the argument to begin completion, the leading "." is not correctly removed. In general, if user selects a fzf completion, the current token should be "consumed". --- shell/key-bindings.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index 0cff4da..238975f 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -29,9 +29,7 @@ function fzf_key_bindings if [ -z "$result" ] commandline -f repaint return - end - - if [ "$dir" != . ] + else # Remove last token from commandline. commandline -t "" end