zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: \## -> x when completing
Date: Thu, 9 Feb 2012 10:22:08 -0800	[thread overview]
Message-ID: <CAH+w=7a_u3+UQrrpW6NChERCi8pFc+PrrxCJVQQCXAf=Ni99Yg@mail.gmail.com> (raw)
In-Reply-To: <CAHYJk3S4dxdkMK6GNywLL2Hjespz095Lxwv0p3aoA4rO0siF2A@mail.gmail.com>

On Thu, Feb 9, 2012 at 8:16 AM, Mikael Magnusson <mikachu@gmail.com> wrote:
>>                tokenize(tmp);
>> -               remnulargs(tmp);
>>                if (haswilds(tmp)) {
>>                    if (is)
>>                        tmp[llpl + gfl] = Star;
>> +                   remnulargs(tmp);
>>                    if ((cp = patcompile(tmp, 0, NULL)))
>>                        haspattern = 1;
>>                }
>
> This fix seems to work for me, I have barely tried anything but my
> test case so far though :). cat \##g<tab> now works in an irclogs dir

My new worry is that tokenize() might make the string *longer*, thus
causing the Star to be inserted too far to the left.


      reply	other threads:[~2012-02-09 18:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 22:37 Mikael Magnusson
2012-02-09 15:37 ` Bart Schaefer
2012-02-09 16:16   ` Mikael Magnusson
2012-02-09 18:22     ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7a_u3+UQrrpW6NChERCi8pFc+PrrxCJVQQCXAf=Ni99Yg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).