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 wrote: > On Sun, Nov 7, 2021 at 11:18 PM Muhmud Ahmad > 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). >