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 31284 invoked from network); 8 Nov 2021 16:58:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2021 16:58:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636390700; b=SWEng06HEfXvWa1puVVqzhNq2e9IXHVs78ETDE0yJKRLp03WUjqng1Wvy6Jj6H7I62WHVgDcNL xBXKN17Jy7438Px+cj8R7OcvcZGtcikUWYLHszdAJJLiQhk2oGJJjV2Gf/nyzU6QlnEgdhyGxk xHS169OIN3chC9783r/9WhbLbiXx7LXiBE3mEy859ZYCp8U68xSWJysBN3aJqvbnFwCtzDDqYn OSCf/1PqsHUSm5UNwjsLNY7XOj0SGsf0q9giNQWcjDbnj6oSzaqzkPMDHm2+XW2WWA44VBx6JF wS2AFAyt4DCTmpLoEexOeZQXtsWq4esD+Taz1oSwAu26KQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f50.google.com) smtp.remote-ip=209.85.167.50; 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=1636390700; bh=Vx15/o5SMutZc7wtOQMR6sZbsLboVgdI53mp6xWqOP4=; 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=GqlBuii1fhTjOdurbZBEzWJfzcvsmI6qKens4myp5GQbr0VvUw+kZ2HNUXsu7VRjXAQp/acyv3 auddInkcCF/YacGPnL6V9ZqlsdfVj9SenC7FGXDybc8yACoaxgssS7GMWWCK/oPYp1ksFLNemi +vBScA7c4PMeDkX7/LaZgMszhXQngJ7O5qHEplaimm/U4qdHbwEe51s7f93TDLPjO+PPK4O2BI 4rfRNgSMeLUizSdWUJoDnI2+359HrMLp2YeKzKqVQmJeapOmYMuYKq8YqCByRRyosUaEKUzYw+ N/6qcldEcBJGZGx8eSPOmNLA7G23QywP5kjt5hZhuZzypQ==; 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=o7oELZn9to3xSXvbJeOBNJof9ryHiVcilCCkwtPVtpM=; b=qkHNEusMAYwEXfkcMxj2cYc+3+ w0B8c/qQi1lsHGUfSExy6HCvVuYSGhf/d4Ne6w2OdBvCjFHuJexEKagVWMSUeFUMphikfzCTARxu3 nr8Z0gNY6TblEtus4cPVf/O2s97jcg9nLFsWYfcQJbjidIMbZEOhwgg5M8uh2ZfjMteweuFjAu8MT dY6B6QVWLEuX3eb+hYaL6fxxGGSMFu6EeuSb186C6iNrFcFzJ+DEnBBE/CaJRoDTGui37EvffCUsY fJY4HdC5s0cknDutubYzHyTY0cxUM0x5z4vjyrS8YkbTj4crnQ6m/zLJTllXXD/38RmrWSNXPv46c o4vx23WA==; Received: from authenticated user by zero.zsh.org with local id 1mk7yO-000N7I-6o; Mon, 08 Nov 2021 16:58:20 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f50.google.com) smtp.remote-ip=209.85.167.50; dkim=pass header.d=googlemail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=googlemail.com; arc=none Received: from mail-lf1-f50.google.com ([209.85.167.50]:46662) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mk7uX-000LgI-DM; Mon, 08 Nov 2021 16:54:21 +0000 Received: by mail-lf1-f50.google.com with SMTP id o18so37659573lfu.13 for ; Mon, 08 Nov 2021 08:54:21 -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=o7oELZn9to3xSXvbJeOBNJof9ryHiVcilCCkwtPVtpM=; b=b5LJXJFwCzEnhRhNwG1VhPQwbni91PvGvBISBwK0scpTsA5wG3qq4K+HIUc8kn+0Yu BDn51yawgt5svG0s/n6vBp+ugXQC3IatZ6stBCkMouMu0NcteztzmG/DJmUvje0mXwRb 6Cyhbp3iYsakOahkI55AxglDdv8FuIMB8XyIaPivFuKWaOuTpv4p4lnqiufbdvhwbMIg Ti4mysAsJo85Yfls26rg2aGNHbH/uCDVYOgv7hJpAYm0lifGWEC7ByC9QmraX1K2zPW3 Wwr9YVYVoYhYdmoP14D105lmo3PIBx9upl3Nrc3z7ZvCqQ2hAKO8H2KUaTur3QNCek00 9MiA== 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=o7oELZn9to3xSXvbJeOBNJof9ryHiVcilCCkwtPVtpM=; b=tR/ncVEpD8lv9AdyjQpDvtTKyWC3b5T2YRji/AfQYBZrUmXbOEbDrhnC/xm0gW3Qv2 ZwzC+u8Tl9xtno1w2B0ZaWIoqkdek7X4+GlGTc02uTOSIdEXq2pnogkrXmtHWzXIlpkW SNle/Vq3DR3zpYK4fg9ck0HGXunpVvZofmAJdgWgFf/oSCuYBWL4cTETmU+5Ct6wSzvJ X5tgx3FJpXe2XYtvRUDQf4wWDNCvgxl3Tu56SgYWe/QKlGzx9jWeb2idDn6ZYlvIgFNV vgvQfQlz1ixzhOROY9xmT8l2Z7m2/C7i/xfDZLR5bCbQzHMg4+4NGweDPw1nWmWfeZ/3 7OEA== X-Gm-Message-State: AOAM531lDdjCnRNoslwNypgQ7PaJqLelcSnBV3t5gqQpwy89+BMGbCd2 OW/JJo03nLHOYybuypLGAv8qkMT46v99kUfBF1z6mWAT X-Google-Smtp-Source: ABdhPJzESopDLPzR5n/HQiZxz0Foz+4YR6Ct/WMnQLze+qkE3rsXNstnqkcfg+nnoaylRGNKT4m/1nwdIVEhceGNAiA= X-Received: by 2002:ac2:5444:: with SMTP id d4mr628002lfn.678.1636390460811; Mon, 08 Nov 2021 08:54:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Muhmud Ahmad Date: Mon, 8 Nov 2021 21:54:09 +0500 Message-ID: Subject: Re: Prevent new line when using edit-command-line To: Bart Schaefer Cc: Zsh Users Content-Type: multipart/alternative; boundary="00000000000021705105d049d8f1" X-Seq: 27325 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: --00000000000021705105d049d8f1 Content-Type: text/plain; charset="UTF-8" I meant "zsh -f" On Mon, 8 Nov 2021 at 21:53, Muhmud Ahmad 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 > 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). >> > --00000000000021705105d049d8f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I meant "zsh -f"

On Mon, 8 Nov 2021 at 21:53,= Muhmud Ahmad <muhmud.ahm= ad@googlemail.com> wrote:
Just tried this with "zfs -f&qu= ot;, 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@brasslantern.co= m> wrote:
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 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).
--00000000000021705105d049d8f1--