2
0
mirror of https://github.com/junegunn/fzf synced 2024-10-30 09:20:14 +00:00

[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".
This commit is contained in:
John Nguyen 2017-06-12 02:24:45 -07:00 committed by Junegunn Choi
parent 842a73357c
commit 1a68698d76

View File

@ -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