From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11253 invoked by alias); 14 May 2011 18:45:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29291 Received: (qmail 29002 invoked from network); 14 May 2011 18:45:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MISSING_HEADERS,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=NKJEVdAWQWy1vsexv1S3wh7rL5xPnjO9h3g2Dg7tH9I=; b=BSwV1VzBjqsRSE1ci4XazTIzJL7ew1edMG7il//pJ7IfQObSUaxbUU6Laaos5V0Y9M ZQrWprqQYXUNWfC11kvFWsWxejIs4Qe6itqE4nkeCBpVl9TUZqMGxYzgnujTzqFmTGvK fSfg2y603521nW33HWxgk+WUPHFjkertNFXUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=g+f2FyD7sv7LJopHIwrU9F7zQEi8vec8PZ6Jb9NVDmid4ANgWnKkcqF5+pTAbmX1SN xNX9S1coHmPcCI9YJglNJB2ZsbgblGBdSgYGp1wqdfiqQ5ddZWVgCFT8BJA/XTuQo5y8 1FLc4nd8sqg6aVNQzKoVHVwx/MBaGf2zSZagE= MIME-Version: 1.0 In-Reply-To: References: <20110513191710.657d2f61@pws-pc.ntlworld.com> <20110513195324.6ab90eb2@pws-pc.ntlworld.com> <110513225805.ZM13712@torch.brasslantern.com> Date: Sat, 14 May 2011 20:45:46 +0200 Message-ID: Subject: Re: PATCH Re: squeeze-slashes false not working? From: Mikael Magnusson Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On 14 May 2011 20:31, Mikael Magnusson wrote: > This seems to work great in my zsh -f. My next project is working out > why none of this helps with my zshrc loaded :). Thanks. Okay, lucky for me it was the third zstyle from the top, zstyle ':completion:*' accept-exact-dirs 'yes' I do still want this set, but maybe it can be made not to consider the empty string an exact dir? This seems to do it, but I've no idea if it's sane. Sane is a strange word to use in _path_files though. --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -361,7 +361,8 @@ for prepath in "$prepaths[@]"; do skipped= cpre= - if [[ ( -n $accept_exact_dirs || -z $path_completion ) && \ + if [[ ( ( -n $accept_exact_dirs && ${pre} != /* ) || \ + -z $path_completion ) && \ ${pre} = (#b)(*)/([^/]#) ]]; then # We've been told either that we can accept an exact directory prefix # immediately, or that path expansion is inhibited. Try the longest -- Mikael Magnusson