Skip to content
This repository was archived by the owner on Feb 28, 2022. It is now read-only.

Commit 1af2fe6

Browse files
kidonnghrshtst
authored andcommitted
[Search files] prevent token from being interpreted as an argument (PatrickF1#132)
Just like PatrickF1#80, solves an issue introduced in https://github.com/PatrickF1/fzf.fish/pull/119/files#diff-fd01aaa375d8928720283f620b157dd451536fe8ef06d837110f2502b2f1660eR9. This one is when the current token is --option when executing the search files feature.
1 parent 15ff6ae commit 1af2fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/__fzf_search_current_dir.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function __fzf_search_current_dir --description "Search the current directory. R
66
set fd_opts --color=always $fzf_fd_opts
77
set fzf_arguments --multi --ansi
88
set current_token (commandline --current-token)
9-
set token (string unescape $current_token)
9+
set token (string unescape -- $current_token)
1010
# need to expand ~ in the directory name since fd can't expand it
1111
set expanded_token (string replace --regex -- "^~/" $HOME/ $token)
1212

0 commit comments

Comments
 (0)