dim-an / cod

cod is a completion daemon for bash/fish/zsh
Apache License 2.0
517 stars 23 forks source link

Convert spaces to tabs #25

Closed SuperSandro2000 closed 4 years ago

SuperSandro2000 commented 4 years ago

to generate consistent init script

This fixes the following aesthetic mismatch:

        local FILE_COMPLETIONS
        local COD_COMPLETIONS
        # Generate file completions
        readarray -t FILE_COMPLETIONS < <(compgen -f -X "$FILTEROPT" -- "$2")

        # Generate cod completions.
    readarray -t COD_COMPLETIONS < <(cod api complete-words -- $$ "$COMP_CWORD" "${COMP_WORDS[@]}" 2> /dev/null)

        COMPREPLY=("${FILE_COMPLETIONS[@]}" "${COD_COMPLETIONS[@]}")

        local NAME
        local ONLY_EQ=true
        # Now we don't want bash to add trailing space for options that end with '='
        for NAME in "${COD_COMPLETIONS[@]}" ; do
                if [ "${NAME: -1}" != "=" ] ; then
dim-an commented 4 years ago

Thanks