about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_gcc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 691b327a2..c73745688 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-07  Peter Stephenson  <pws@csr.com>
+
+	* users/4503: Completion/Unix/Command/_gcc: don't complete source
+	or header files after -o.
+
 2001-12-06  Oliver Kiddle  <opk@zsh.org>
 
 	* users/4519: Completion/Unix/Command/_zip: complete files
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index f826f9793..e6c81e408 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -166,7 +166,7 @@ esac
 _arguments -C -M 'L:|-{fW}no-=-{fW} r:|[_-]=* r:|=*' \
   "$args[@]" \
   -c -S -E -v -a -w -C -H -P -s '(-pg)-p' '(-p)-pg' \
-  '-o:output file:_files' \
+  '-o:output file:_files -g \^\*.\(c\|h\|cc\|C\|cxx\)' \
   '-x:input file language:(c objective-c c++ c-header cpp-output c++-cpp-output assembler assembler-with-cpp none)' \
   '+e-:virtual function definitions in classes:((0\:only\ interface 1\:generate\ code))' \
   '-d-:dump:->dump' \