The following commit has been merged in the master branch:
commit c3f6eda088776985244d2973ac09d338166069fe
Author: Ville Skyttä <[email protected]>
Date: Sun Oct 30 11:06:13 2011 +0200
cppcheck: Don't stop completing after -DFOO.
diff --git a/completions/cppcheck b/completions/cppcheck
index cb15f73..c24beb2 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -11,7 +11,7 @@ _cppcheck()
_filedir
return
;;
- -D*|--rule|--suppress|--template)
+ -D|--rule|--suppress|--template)
return
;;
--enable)
diff --git a/test/lib/completions/cppcheck.exp
b/test/lib/completions/cppcheck.exp
index 66caf27..4acd709 100644
--- a/test/lib/completions/cppcheck.exp
+++ b/test/lib/completions/cppcheck.exp
@@ -12,8 +12,18 @@ setup
assert_complete_any "cppcheck "
+sync_after_int
+
+
+assert_complete_any "cppcheck -"
+sync_after_int
+
+
+assert_complete_any "cppcheck -DFOO=BAR "
+sync_after_int
+assert_no_complete "cppcheck -D "
sync_after_int
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits