Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Step two seems to take us there



On Sat, Jun 20, 2015 at 7:03 PM, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> On Sat, 20 Jun 2015 04:48:08 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> This change on top of the previous one seems to make things work when
>> the foo in ~[foo] has a / in it. I'm not sick enough to try and make a \]
>> in there work.
>>...
>> -  pre="${pre#*/}"
>> -  orig="${orig#*/}"
>> +  pre="${${pre#\~\[[^]]#]}#*/}"
>> +  orig="${${orig#\~\[[^]]#]}#*/}"
>>...
>
> You might want a backslash before the last "]".  (I think one works "to
> guide the eye" but isn't necessary before the one after the "^".)

That's probably a good idea, yeah. I noticed that I'm still getting
some "corrections: 1" with some completions, and I haven't been able
to figure out why yet. It happens even when my foo doesn't have a /
sometimes...

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author