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

Re: edit-command-line breaks out of vared



> On Sun, Aug 19, 2018 at 2:22 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>>
>> I expected quitting the editor to let me resume the vared session

My first inclination here is to ask why you expected that ...

>> instead it left me with the variable's value as a command line.

... because the name of the function is edit-command-line, after all.


On Sun, Aug 19, 2018 at 6:18 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> This works in my version of edit-command-line,
>
> +  [[ -z $PREBUFFER ]] && {

Hrm, is PREBUFFER really guaranteed to be empty whenever vared is
running?  I suppose so.



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