[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-486-g2a88af0
Ville Skyttä
ville.skytta at iki.fi
Sun Oct 30 09:11:52 UTC 2011
The following commit has been merged in the master branch:
commit c3f6eda088776985244d2973ac09d338166069fe
Author: Ville Skyttä <ville.skytta at iki.fi>
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
More information about the Bash-completion-commits
mailing list