summaryrefslogtreecommitdiff
path: root/completions/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gcc')
-rw-r--r--completions/gcc8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/gcc b/completions/gcc
index b5d60958..306bbd4f 100644
--- a/completions/gcc
+++ b/completions/gcc
@@ -12,13 +12,13 @@ have gcc || return
_gcc()
{
- local cur cc backend
-
- COMPREPLY=()
- _get_comp_words_by_ref cur
+ local cur prev words cword
+ _init_completion || return
_expand || return 0
+ local cc backend
+
case $1 in
gcj)
backend=jc1