Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: insert-last-word makes space disappear
- X-seq: zsh-workers 20259
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: insert-last-word makes space disappear
- Date: Sun, 15 Aug 2004 11:53:47 -0700 (PDT)
- In-reply-to: <Pine.LNX.4.61.0408132357390.30205@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20040813082318.GN1191@localhost> <Pine.LNX.4.61.0408132357390.30205@xxxxxxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Sat, 14 Aug 2004, Bart Schaefer wrote:
> The best long-term solution would be to extend the user-defined widget
> creation routines to flag widgets that should keep (or erase) a previous
> auto-suffix, so that the internal implementation of the widget doesn't
> matter.
It occurs to me to wonder why the auto-suffix isn't available in a zle
variable (like BUFFER, CURSOR, etc.) so that the user-defined widget
can make it's own decisions? If the suffix is more than one character
long, it's not sufficient to examine $LBUFFER[-1].
Another question is whether appending to LBUFFER should (already does?)
count as an insertion for purposes of e.g. "compadd -R".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author