Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: histlexwords error with >! token
- X-seq: zsh-workers 34396
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: histlexwords error with >! token
- Date: Sun, 25 Jan 2015 22:32:18 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=G9TTV+Wwq+KGR9WR3wC5dVTyu8spfxHkQkJ200OOEvQ=; b=ddMw4biBJmGPw9d5QA5n3bq8+V7/a/fhS2qy6Ot2Vhj9bQnmIo1V9WNpWiPuaTyOUc aqy+kg9ANUHgrXvrKjpE26OJ0w/JMKthh2jI2TJ+XImqYleA7MDBEm4xs7Y9LsgZzi6g IqqMcOmqCzLluHs8mcr64Z8nE1grqjxttdUom9SuRrWgVdj4NdNEyfvsvPKpHKZcJIoA fR1rVus6422fPXIcNxjmkaQHrUMDwLdOQ/l4Gkq0sIITcjDxvGkNr2GYz4/NKkZ5ByHU TsI5RLyKNU0abQxCT5wHpBOBwUPlPovmp0x5PyPcFBnFXa8qUfd1GeEi6PMF+Bb4QyDM TDrA==
- In-reply-to: <150125131515.ZM31850@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAHYJk3SFKw+gUCbu9gKWKxSo_MPNm1Qcwj6xrWvZLk8N=WSXSg@mail.gmail.com> <150125115905.ZM31435@torch.brasslantern.com> <CAHYJk3Sygk_EPse997r5Gm_W-mt6Cib3koGFaW_b=PfYcHrTGg@mail.gmail.com> <150125131515.ZM31850@torch.brasslantern.com>
On Sun, Jan 25, 2015 at 10:15 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 25, 9:40pm, Mikael Magnusson wrote:
> }
> } > - wptr++;
> } > + if (!*++wptr)
> } > + break;
> }
> } That appears to do the trick. I also tried recalling the words with
> } insert-last-word and copy-earlier-word and they show up as expected
> } even when they contain spaces, which wasn't the case before the patch.
>
> Hm, that's a little strange (unless you mean this happens on lines that
> also contain ">!") -- for the simple case of words containing a space,
> the strpfx() call up at line 3407 should have done the trick in the
> first place.
>
> Nevertheless, I'll go ahead and push this for now.
Yes, I'm talking about a line that has >! on it. Without the patch,
recalling words gives you 'foo\' and 'bar' separately instead of a
single 'foo\ bar'. What I meant by pointing that out in the first
place is that stuff is actually working, we didn't just suppress an
error message :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author