[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" ] if [ -z "$result" ]
commandline -f repaint commandline -f repaint
return return
end else
if [ "$dir" != . ]
# Remove last token from commandline. # Remove last token from commandline.
commandline -t "" commandline -t ""
end end