summaryrefslogtreecommitdiff
path: root/shell/key-bindings.fish
diff options
context:
space:
mode:
authorzsugabubus <zsugabubus@users.noreply.github.com>2021-11-19 01:36:28 +0000
committerGitHub <noreply@github.com>2021-11-19 10:36:28 +0900
commit205f885d6941eac47004779d9125df1463458fdd (patch)
tree66e082e3691b48327570c571cb74281207dd421f /shell/key-bindings.fish
parent3715cd349dfc791e96b8e12ba31a00809fdb048d (diff)
downloadfzf-205f885d6941eac47004779d9125df1463458fdd.tar.gz
[shell] Use cd -- (#2659)
Otherwise directories starting with '-' may treated as options.
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r--shell/key-bindings.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index 6f73903d..370ef1b6 100644
--- a/shell/key-bindings.fish
+++ b/shell/key-bindings.fish
@@ -87,7 +87,7 @@ function fzf_key_bindings
eval "$FZF_ALT_C_COMMAND | "(__fzfcmd)' +m --query "'$fzf_query'"' | read -l result
if [ -n "$result" ]
- cd $result
+ cd -- $result
# Remove last token from commandline.
commandline -t ""