diff options
| author | John Nguyen <ipwnponies@users.noreply.github.com> | 2017-06-12 02:24:45 -0700 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-06-12 18:24:45 +0900 |
| commit | 1a68698d76d3a07b5c2c41621ca4feb51ec9afdc (patch) | |
| tree | df160ee5a22ea4709156a1798fa40683058fb0e2 | |
| parent | 842a73357c9c1933601e4f0c4fd6607e1647ec70 (diff) | |
| download | fzf-1a68698d76d3a07b5c2c41621ca4feb51ec9afdc.tar.gz | |
[fish] Fix <C-t> completion for current dir search (#946)
If "." is given as the argument to begin <C-t> completion, the leading
"." is not correctly removed. In general, if user selects a fzf
completion, the current token should be "consumed".
| -rw-r--r-- | shell/key-bindings.fish | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index 0cff4daa..238975fc 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 |
