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

Re: histlexwords error with >! token

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