Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prevent new line when using edit-command-line
- X-seq: zsh-users 27323
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Muhmud Ahmad <muhmud.ahmad@xxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Prevent new line when using edit-command-line
- Date: Mon, 8 Nov 2021 08:46:22 -0800
- Archived-at: <https://zsh.org/users/27323>
- In-reply-to: <CALbcwM=bfwL3MyHQL8ZZQVd8z-fw-gidg5x9fJN69=SLuz1mkQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CALbcwM=bfwL3MyHQL8ZZQVd8z-fw-gidg5x9fJN69=SLuz1mkQ@mail.gmail.com>
On Sun, Nov 7, 2021 at 11:18 PM Muhmud Ahmad
<muhmud.ahmad@xxxxxxxxxxxxxx> wrote:
>
> Is there anyway to stop this behaviour, and just have my command on the same line where I started the editor?
I'm not able to reproduce this at the PS1 prompt, that is, for me the
buffer is restored at the current prompt. At the PS2 prompt, starting
a new PS1 prompt is unavoidable because the existing ZLE "session" has
to be restarted in order to merge the previously-entered lines
($PREBUFFER) with the current line ($BUFFER).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author