From: Bart Schaefer <schaefer@brasslantern.com>
To: Muhmud Ahmad <muhmud.ahmad@googlemail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Prevent new line when using edit-command-line
Date: Mon, 8 Nov 2021 08:46:22 -0800 [thread overview]
Message-ID: <CAH+w=7bmezz8_Y+yR=hc+7nZWyL-fYCiWGiHbbak7Jpk-TGu5Q@mail.gmail.com> (raw)
In-Reply-To: <CALbcwM=bfwL3MyHQL8ZZQVd8z-fw-gidg5x9fJN69=SLuz1mkQ@mail.gmail.com>
On Sun, Nov 7, 2021 at 11:18 PM Muhmud Ahmad
<muhmud.ahmad@googlemail.com> 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).
next prev parent reply other threads:[~2021-11-08 16:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 7:17 Muhmud Ahmad
2021-11-08 16:46 ` Bart Schaefer [this message]
2021-11-08 16:53 ` Muhmud Ahmad
2021-11-08 16:54 ` Muhmud Ahmad
2021-11-08 17:56 ` Bart Schaefer
2021-11-08 19:14 ` Muhmud Ahmad
2021-11-08 22:29 ` Pier Paolo Grassi
2021-11-08 23:05 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7bmezz8_Y+yR=hc+7nZWyL-fYCiWGiHbbak7Jpk-TGu5Q@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=muhmud.ahmad@googlemail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).