2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-18 09:28:40 +00:00

[fish] Fix $dir in FZF_{CTRL_T,ALT_C}_COMMAND not evaluated

Fix #3705
This commit is contained in:
Junegunn Choi 2024-03-31 20:37:20 +09:00
parent 07ac90d798
commit 128e4a2e8d
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -21,7 +21,7 @@ function fzf_key_bindings
# Store current token in $dir as root for the 'find' command
function fzf-file-widget -d "List files and folders"
set -l commandline (__fzf_parse_commandline)
set -l dir $commandline[1]
set -lx dir $commandline[1]
set -l fzf_query $commandline[2]
set -l prefix $commandline[3]
@ -70,7 +70,7 @@ function fzf_key_bindings
function fzf-cd-widget -d "Change directory"
set -l commandline (__fzf_parse_commandline)
set -l dir $commandline[1]
set -lx dir $commandline[1]
set -l fzf_query $commandline[2]
set -l prefix $commandline[3]