From 1d6c3eaaa0618d35329495a324c9fd2e7ed9843a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 30 Aug 1999 10:08:13 +0000 Subject: zsh-workers/7533 --- Completion/User/_gdb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Completion/User/_gdb') diff --git a/Completion/User/_gdb b/Completion/User/_gdb index 57914773c..1f64f0c1f 100644 --- a/Completion/User/_gdb +++ b/Completion/User/_gdb @@ -5,9 +5,10 @@ local cur="$words[CURRENT]" prev w list ret=1 expl -_long_options -t '*=(CORE|SYM)FILE:core file:_files' \ - '*=EXECFILE:executable:_files *(*)' \ - '*=TTY:terminal device:compadd /dev/tty*' && return 0 +[[ "$PREFIX" = --* ]] && + _arguments -- '*=(CORE|SYM)FILE:core file:_files' \ + '*=EXECFILE:executable:_files \*\(\*\)' \ + '*=TTY:terminal device:compadd /dev/tty\*' && return 0 if compset -P '-(cd|directory)='; then _files -/ -- cgit 1.4.1