Skip to content

Commit

Permalink
Clean-up bash comletion
Browse files Browse the repository at this point in the history
"cword" is unset and even is not used in completion for other shells, so it probably shouldn't be here either. If it for some reason should be there add the directive "# shellcheck disable=SC2034" to the line above it.
  • Loading branch information
adrianbiro authored and Enselic committed May 12, 2023
1 parent e828d78 commit e155f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/completions/bat.bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ __bat_escape_completions()
}

_bat() {
local cur prev words cword split=false
local cur prev words split=false
if declare -F _init_completion >/dev/null 2>&1; then
_init_completion -s || return 0
else
Expand Down

0 comments on commit e155f56

Please sign in to comment.