mirror of
https://github.com/junegunn/fzf.git
synced 2025-07-31 20:22:01 -07: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:
committed by
Junegunn Choi
parent
842a73357c
commit
1a68698d76
@@ -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
|
||||
|
Reference in New Issue
Block a user