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

Re: Prevent new line when using edit-command-line



I meant "zsh -f"

On Mon, 8 Nov 2021 at 21:53, Muhmud Ahmad <muhmud.ahmad@xxxxxxxxxxxxxx> wrote:
Just tried this with "zfs -f", and I still get the same behaviour. I'm definitely at a PS1 prompt, I'm triggering the editor before I type anything on the current line at all.

My zsh version is 5.8 (x86_64-pc-linux-gnu)

On Mon, 8 Nov 2021 at 21:46, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
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