From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30843 invoked from network); 8 Nov 2021 16:54:31 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2021 16:54:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636390471; b=QRvG6gpJvV9qQoqfoTupIVrkm+bldAiJkcWLZUuk7ZFtYKV5Wnp6+dtbyAh72ZBbb9cwC4tmnD caTT0IhGLf89lMr04ExhlXaK3GXuiLPkeERXXeTQu3PC7jH8AW7kuvzX6lOqPO3xWv6pJvYbsp 5Y0uyjpuZ9ZDzglPckNDufHezz0/izfM/dwOE8YNu3IgZtYWsGy0DnJE4eo6KIqhB2EiXolGNO xgPr7dRcNWqu2v3JHBFg9gFOdEmBvBfE4PPQ7km/IQA6Jv6faacjTvqg41ReK0UowaLK8XAhWG DwzTcyu2qhHPxxAs8+mHnLUzOhi8xzu4Z966DYIPeyuIqw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f182.google.com) smtp.remote-ip=209.85.208.182; dkim=pass header.d=googlemail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=googlemail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1636390471; bh=DJpHF746cR+r/RG/ila2H4aNZ01a/DiPoaXu7N3XR0o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=H9XtkUsbPxneDuSo4l0a3kRs/01oTh9rxp0HPFGhZqXxNy10IJDFkoY/UvytwQCPw46hbvC1m3 BtrInZ15E0m6SUZdAkZ0JvO++ewVfeBfqPUfT1p0cWc3KrbQOjx4XMMowdsklmkcsSj7MAvxkB USu24rk8FV+pEHS4hM+siyHdjg49oXGRNi/Oq9VzDwI+sHyHkqMiw6p7icqzEJahcylxyf2n3u pm8tJLogzposf2Hv5HaKDQCWgsOjVUXlDSCm1Nr1ZtvJkiAgkuxl94rnNmq0Yc9H+54Osv53Zb QbLqDdePYYYGPMzeXz595Xqs+QgOUKJ5l5TZr+TBMppnxw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=J9oxaVUEYkZa4a86OZIKwG6CsF0H+1TlEviaJD2ShPs=; b=JKyJsXRxqd11UGNclDgBX+qwdG WwHBp1GSlvqTednAvLnhEx2aIQeJ78vlw7GJYPwz7PvQ0UBP3Fev1qujpdXbpfnRpaKtoa8gP4rgO BNS1mXMkuFUKC/DLzLWlpMh84wBCm64VCrduovnK7UNe/x8fshkdBDbb5+ulQlh75qSwFf3VN22YQ tcoeZejhsU3ain2+mw5IlbJg+65pcvHJFEnURB4gjrHEicwEnoQGF08x1lMWw1ZVvQXdRqYMSUCnY XRuF5IDChaeu2hYL5tagysdZukP4HR+6xqX4FRZy1d6dgsPv6Zokt5t3uI6c4oVeHreCNeVvbR/O0 rCQiO8Uw==; Received: from authenticated user by zero.zsh.org with local id 1mk7uh-000Lv4-9M; Mon, 08 Nov 2021 16:54:31 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f182.google.com) smtp.remote-ip=209.85.208.182; dkim=pass header.d=googlemail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=googlemail.com; arc=none Received: from mail-lj1-f182.google.com ([209.85.208.182]:35331) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mk7tv-000LB8-46; Mon, 08 Nov 2021 16:53:44 +0000 Received: by mail-lj1-f182.google.com with SMTP id 1so30752411ljv.2 for ; Mon, 08 Nov 2021 08:53:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J9oxaVUEYkZa4a86OZIKwG6CsF0H+1TlEviaJD2ShPs=; b=ISHhw96AKUzmzhSEA/nbStV6E1uLfoApovpDqaVFRT8ZjOXAAI9QoWB42vhClNcysR zwMUCC5Y2o4wqnn1Gjp6QERnYC9w/KOUFaooc292qT6MbCn51qAwG1Pqp5HDxeTZ8ida 0zQqtqQj5PHNEj2Edhalg2ZjZcHTfyldYVBW24XlC6s3JuwAL7qIfQP4E7QUz1xU60V7 f5CY09TX7p15MJeb+UGinY2djYZVo7GIiPpCFJNoWV8+jhycczAO64jLfVlcPzt/iYGx 2b1lXyg5rTL/Z24zEFFfK4HyOCG19F/Uya0SBCucL0OyCNdzlQLdBrS5pZ9oXX7v69bR s2mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J9oxaVUEYkZa4a86OZIKwG6CsF0H+1TlEviaJD2ShPs=; b=6OI0rvq00/j2xx1EURGkgiHRR6UUyvnavZljLN5Tn6YVwefCxKD5QiEcpvf/xtJYXU p2Ri29O4PbR+eWsWU5bO9Wi43hdTmeXSghPOEMW5Se2esoDkTigpwvTKKs00ldXLUOWJ FSAGMx8N7PKhNjfqwtb3YFY8NltuIpyCDtuoYgFdkSueXX7sOrkN48fhhAwhS2lD3SCE 0Qt3dcyJ5a0xA9W0/+yejv8Jd2nzveSi9SmfMO7FtSMswlOr7eaYOluueBGZ9QlSbvXe QAileAXqWbYy+8QHtrJOFDKcyeHwUDL+nRKyRKPwTNUA3cYFXxEmi2E5UExOjbmCSZLR wxDg== X-Gm-Message-State: AOAM531lYgrt1ZMxcvTYZSYIaiJf49ALUX4UUefdvypM/oq+UL3WLoKZ VXna8ha0w2B6p3mKebxtkv7/Eo8VKW0465iv/8vBWLRyMFk= X-Google-Smtp-Source: ABdhPJy8gmBhh/KrqD6p6Y1KXA53lVbhq/8vF44CnboHBNb9MywZzJ9SBPEhSBVcj6DlxbL5f51V8JEKMGrmvorwFwk= X-Received: by 2002:a2e:7216:: with SMTP id n22mr444603ljc.452.1636390422483; Mon, 08 Nov 2021 08:53:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Muhmud Ahmad Date: Mon, 8 Nov 2021 21:53:30 +0500 Message-ID: Subject: Re: Prevent new line when using edit-command-line To: Bart Schaefer Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000d8945e05d049d5bd" X-Seq: 27324 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --000000000000d8945e05d049d5bd Content-Type: text/plain; charset="UTF-8" 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). > --000000000000d8945e05d049d5bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just tried this with "zfs -f", and I still = get the same behaviour. I'm definitely at a PS1 prompt, I'm trigger= ing 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@brasslantern.com> wrote:
On Sun, Nov 7, 2021 at 11:18 PM Muh= mud Ahmad
<muhmud= .ahmad@googlemail.com> wrote:
>
> Is there anyway to stop this behaviour, and just have my command on th= e 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.=C2=A0 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).
--000000000000d8945e05d049d5bd--