Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: edit-command-line breaks out of vared
- X-seq: zsh-users 23590
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: edit-command-line breaks out of vared
- Date: Sun, 19 Aug 2018 12:03:25 -0700
- Cc: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LqyVopd3Nch4bOp6VCyFkUfRvTKLRKMqNXS3bypY5tQ=; b=InFkhR+uC/kJ3sQF2vHdfqpXVIK6eQulnLOjH3tcBhOj/KRm7oKe5C+fFnyCSs6FNN VhmYdguc49g8o1uR8SK0su34MaQcCzMdkqSzvouOuunYrdSB4EGlNkP9bHjio0Uv3b7n kyMNuN+1jIWLUtlDP3rxja1gQ+w12K1MZEDxQ8xYuP9QpCbul+XBN1cCh5tTt54rQ8Ks dhm8EGsEUvDidLgEXnQhxUIq/R92wQhyHOGxMjuvyDaiqXquNh0Zv6JF6i8t67doNx84 ZanN9vvdqtTABdfsUGRLh0UXxzsaEwi9XFQN4E2WAxdQGT8EDUdA6r3IvR4Id/pzxeIi Tw3Q==
- In-reply-to: <CAHYJk3RBurSZJuFdzua5DPAU7rd2wvZX6tSAEtAXwD89-Fd_NQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20180819122254.mgx2kfbnbsxxtuqk@tarpaulin.shahaf.local2> <CAHYJk3RBurSZJuFdzua5DPAU7rd2wvZX6tSAEtAXwD89-Fd_NQ@mail.gmail.com>
> 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