From c7a4421715fc8d86c2a4a67366459e421f4b54d9 Mon Sep 17 00:00:00 2001 From: favonia Date: Tue, 7 Dec 2021 16:53:38 -0600 Subject: [PATCH] fix: typo in {bash,zsh}_completions.go (#1459) * Fix typo in bash_completions.go * Fix the same typo in zsh_completions.go --- bash_completions.go | 2 +- zsh_completions.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bash_completions.go b/bash_completions.go index 848f770..f8f6bef 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -134,7 +134,7 @@ __%[1]s_handle_go_custom_completion() $filteringCmd elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only - local subDir + local subdir # Use printf to strip any trailing newline subdir=$(printf "%%s" "${out[0]}") if [ -n "$subdir" ]; then diff --git a/zsh_completions.go b/zsh_completions.go index 1afec30..36774b6 100644 --- a/zsh_completions.go +++ b/zsh_completions.go @@ -202,7 +202,7 @@ _%[1]s() _arguments '*:filename:'"$filteringCmd" elif [ $((directive & shellCompDirectiveFilterDirs)) -ne 0 ]; then # File completion for directories only - local subDir + local subdir subdir="${completions[1]}" if [ -n "$subdir" ]; then __%[1]s_debug "Listing directories in $subdir"