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

Re: insert-last-word makes space disappear



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