From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26661 invoked from network); 26 Mar 2001 16:12:12 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Mar 2001 16:12:12 -0000 Received: (qmail 5383 invoked by alias); 26 Mar 2001 16:12:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13779 Received: (qmail 5372 invoked from network); 26 Mar 2001 16:12:05 -0000 Date: Mon, 26 Mar 2001 11:12:06 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: _complete_tag patch? Message-ID: <20010326111206.B20541@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Is this correct? ----- Forwarded message from Michal Politowski ----- Two small errors in this function: --- /tmp/_complete_tag Mon Mar 26 17:24:01 2001 +++ /usr/share/zsh/functions/_complete_tag Mon Mar 26 17:10:41 2001 @@ -48,8 +48,8 @@ _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