diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2001-03-26 19:01:58 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2001-03-26 19:01:58 +0000 |
| commit | b0176cb54f2a7fdde6e4226e0691c88c1674af34 (patch) | |
| tree | 0823981a57221ffc228dce094b583454fbcdd214 /Completion/Commands | |
| parent | 13777: maxfilelocks limit for glibc2.2 (diff) | |
| download | zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.tar zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.tar.gz zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.tar.bz2 zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.tar.lz zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.tar.xz zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.tar.zst zsh-b0176cb54f2a7fdde6e4226e0691c88c1674af34.zip | |
13779/13783: fixes from Michal Politowski
Diffstat (limited to 'Completion/Commands')
| -rw-r--r-- | Completion/Commands/_complete_tag | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Commands/_complete_tag b/Completion/Commands/_complete_tag index 4470a2ad4..61641271f 100644 --- a/Completion/Commands/_complete_tag +++ b/Completion/Commands/_complete_tag @@ -46,11 +46,12 @@ if [[ -f $c_path$c_Tagsfile ]]; then # c_tags_array=($(perl -ne '/([a-zA-Z_0-9]+)[ \t:;,\(]*\x7f/ && # print "$1\n"' $c_path$c_Tagsfile)) _main_complete - '' _wanted etags expl 'emacs tags' \ + compadd -a c_tags_array -elif [[ -f $c_tagspath ]]; then +elif [[ -f $c_path$c_tagsfile ]]; then # tags doesn't have as much in, but the tag is easy to find. # we can use awk here. - c_tags_array=($(awk '{ print $1 }' $c_path$c_Tagsfile)) + c_tags_array=($(awk '{ print $1 }' $c_path$c_tagsfile)) _main_complete - '' _wanted vtags expl 'vi tags' compadd -a c_tags_array else return 1 |
