summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-30 11:07:38 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-10-30 11:07:38 +0200
commitc07cc2ba436659ca563534d884c7a36b96c60f2a (patch)
treedba788fd76aa94acfebb2b6769cb541bfd476a40
parentc3f6eda088776985244d2973ac09d338166069fe (diff)
downloadbash-completion-c07cc2ba436659ca563534d884c7a36b96c60f2a.tar.gz
cppcheck: -D can be followed by space, don't -o nospace it.
-rw-r--r--completions/cppcheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/cppcheck b/completions/cppcheck
index c24beb2b..c31966d6 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -49,7 +49,7 @@ _cppcheck()
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
- [[ $COMPREPLY == @(-D|*=) ]] && compopt -o nospace
+ [[ $COMPREPLY == *= ]] && compopt -o nospace
else
_filedir @(cpp|cxx|cc|c++|c|tpp|txx)
fi