summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorChitoku <chitoku-k@users.noreply.github.com>2020-03-24 08:58:22 +0900
committerGitHub <noreply@github.com>2020-03-24 08:58:22 +0900
commit079046863c0a9f5bc37d629bab02dccffcf329bc (patch)
tree51e967680be97cfeefcdf507ea80bcfe9d6e302b /shell
parent07b965bba18fcea575458aeb3e6cc4fc832b11f2 (diff)
[zsh-completion] Fix a bug where _fzf_complete did not iterate through args (#1936)
Diffstat (limited to 'shell')
-rw-r--r--shell/completion.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh
index 2444cbdb..b6aec33c 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -112,7 +112,7 @@ _fzf_complete() {
local args rest str_arg i sep
args=("$@")
sep=
- for i in {0..$#args}; do
+ for i in {0..${#args[@]}}; do
if [[ "${args[$i]}" = -- ]]; then
sep=$i
break