cppcheck: -D can be followed by space, don't -o nospace it.
This commit is contained in:
parent
c3f6eda088
commit
c07cc2ba43
@ -49,7 +49,7 @@ _cppcheck()
|
|||||||
|
|
||||||
if [[ $cur == -* ]]; then
|
if [[ $cur == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||||
[[ $COMPREPLY == @(-D|*=) ]] && compopt -o nospace
|
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||||
else
|
else
|
||||||
_filedir @(cpp|cxx|cc|c++|c|tpp|txx)
|
_filedir @(cpp|cxx|cc|c++|c|tpp|txx)
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user