diff --git a/assets/completions/bat.bash.in b/assets/completions/bat.bash.in index 68c80234..3dc56f31 100644 --- a/assets/completions/bat.bash.in +++ b/assets/completions/bat.bash.in @@ -66,7 +66,7 @@ _bat() { printf "%s\n" "$lang" done )" -- "$cur")) - __bat_escape_completions + __bat_escape_completions return 0 ;; -H | --highlight-line | \ @@ -130,16 +130,16 @@ _bat() { return 0 ;; --theme) - local IFS=$'\n' - COMPREPLY=($(compgen -W "auto${IFS}auto:always${IFS}auto:system${IFS}dark${IFS}light${IFS}$("$1" --list-themes)" -- "$cur")) - __bat_escape_completions - return 0 - ;; + local IFS=$'\n' + COMPREPLY=($(compgen -W "auto${IFS}auto:always${IFS}auto:system${IFS}dark${IFS}light${IFS}$("$1" --list-themes)" -- "$cur")) + __bat_escape_completions + return 0 + ;; --theme-dark | \ --theme-light) local IFS=$'\n' COMPREPLY=($(compgen -W "$("$1" --list-themes)" -- "$cur")) - __bat_escape_completions + __bat_escape_completions return 0 ;; --style) @@ -158,7 +158,7 @@ _bat() { numbers snip ) - # shellcheck disable=SC2016 + # shellcheck disable=SC2016 if declare -F _comp_delimited >/dev/null 2>&1; then # bash-completion > 2.11 _comp_delimited , -W '"${styles[@]}"'