Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: histlexwords error with >! token
- X-seq: zsh-workers 34394
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: histlexwords error with >! token
- Date: Sun, 25 Jan 2015 13:15:15 -0800
- In-reply-to: <CAHYJk3Sygk_EPse997r5Gm_W-mt6Cib3koGFaW_b=PfYcHrTGg@mail.gmail.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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author