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

Re: About LBUFFER: is it read-only or not?



DervishD wrote:
>     The Zsh manual says that the LBUFFER parameter is available
> read-only inside completion widgets or traps while zle is active, but
> I've seen inside some functions that LBUFFER is modified directly :??

There are two types of widgets.  LBUFFER can be modified from zle
widgets created using zle -N, but not from completion widgets created
with zle -C since in that case the completion code does all the
rearranging of the command line (which can be arbitrarily complicated).

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author