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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30027 invoked from network); 8 Nov 2021 16:47: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:47:31 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1636390051; b=A5Eq0TBwAK8/Y6pNKPp1ZyVfQJiLKQZGLy3RmYCaZBPj+BOIvWd1wYrMOntaICTIdo+513ezKW O7KVFW/oJHyCqdaSeSgX1fhI92KSZLbAnAQoWc7M3IgY0kOAJi3/FOo6qZTfPGKrRqK62RwshR zEKtL72vKSVmKwy6ApRJPrdy+hOYDe9GCxGJlIawNXyT/IQao3tDiS4XJOTF4JCWp3Z52YUXgu 3ZX7OVbKORD/NFIIRpDu36VXTHuxmUvvDbwYXNp0zkjDqeuQGuJ5KE55JUA/j0IHG7yfXDbzaf nBnzL8eHY5OxHr7QSXOPG/FUhcdw2z99t181P8H8lyDKzw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f170.google.com) smtp.remote-ip=209.85.219.170; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1636390051; bh=Nb7+FfSnatlc4ofSE2KdmvAHrAgduIqHkAYkjOln1uk=; 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=gBEnFMwGWug3Nid0KIwsdiOrgT84UBttI6D9qOqNpa84GbDtnjIzVy0ItTWI/BPHk+FbpxnMDO 0wjR3K76OfM+2XM6aBbL+7cEr6CAvv8AwJ/uFgmaVCXQX52VYneHbKBYBn1NdFomeb0QXOz+YA bOBX0pfJSvCS47EUr2HAWaj5Y0zabF3SXORzQgSiAN5keb5P6gxyd+HPmJQ+VyKAglH6sFNIDT 7f7pbX/0hhkxhdQnzCF2gfyK+uuZrNrNrwg9ATj0ld2Seu4kWbYmebF3EivVjE990Ot0QhuI5u cROZndUmfGvJVHvwA8GS+7eFwPHAkQl0b/4kdx82IxQLkg==; 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=nru8RkJiyyHn+a4x2oLOMTdq3HBF84SVTV9JELgjSJI=; b=dgs0+WN2DaS66DpNm47BFcTtDE tEp7/VR0pTbquWknVOV+fNejxW79koPRhPn4/QQjIhrsfvqMbLWJ1xXCRL54d5kI/6quIR5f2NRoI Z9d1ab7b93sbDJsqhA6gbi6oo+Ffbze02FpGA01Ggd7ViKQ8th5Meubz+frltAdoUmVHbAu15scSa yzxwMVftYkHk9sE5P/m4PpWW87ND67u2DJVlOzsBb4uiit8gFH6wanLIkT+Fu4kjQgCM/KyHEWqBZ BHHRfDH5+hn7scP4YWdy2oFO1mlZjPtP8A5CRtvSeTv7dWm61cuMFumsfY6nEfKcHRxgY4YpGhD8w xK1ydezA==; Received: from authenticated user by zero.zsh.org with local id 1mk7nu-000Kcu-Nr; Mon, 08 Nov 2021 16:47:30 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f170.google.com) smtp.remote-ip=209.85.219.170; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f170.google.com ([209.85.219.170]:39770) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mk7n2-000Jws-0Q; Mon, 08 Nov 2021 16:46:37 +0000 Received: by mail-yb1-f170.google.com with SMTP id j75so45219983ybj.6 for ; Mon, 08 Nov 2021 08:46:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nru8RkJiyyHn+a4x2oLOMTdq3HBF84SVTV9JELgjSJI=; b=TLOB1N9zymQWe0zfkCE71QEGkNJwxUxUjz2vFc8/KLeCWxAyCXdJo0BgpGp84BFLYf uX/tbGDIpBPSx+qoBJ73bNBxw2LZdrhoV8ir9Vw6/vrXdno2aoEZvN5gtNaaso/jHpkh /kM+qisCnFWJ0aiQ9Z6QLENCui5oT07yILce+wEiH23zVqSkt0eq/AJzncDQvbyrDXpG aMxntfalJJRVAL+yFCYU4KRX0ehkA3QEAbwmgrVHuvahCsmtL7f30RxHYW0VZ7VlTJyq ag48qV4cBdKl2i+fo5Z/AMIm1CNXFo8lq1CsF3OJCTM0HK/9BKI/PwMcpeVN+uPQQKaI amww== 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=nru8RkJiyyHn+a4x2oLOMTdq3HBF84SVTV9JELgjSJI=; b=2w6DzeW9+8EomR5F+DL83u28XesvnWu1rMLILmiFUlVZkyrfVuJmvM0PvMMTGXGCtt 9pUTEHu3Xl7pKGkcvoLDT7M4ahFig1yA8kiFJcvoZnuYtjxUEActEtgCTE738ewKlWUe 8wynbWGZzivYyDx9+EAy82lviZ2YLLE7cS64An1xeUBMEqtRQgTP2YJcNipZh6Q1t6cN OAOCteE4fVBRDjcBH3cXsdN/6wQdgsj8nsltlxtxSxExupYqtd+Tjqy0dACBeczm1ChU +9FpSMeHdCSqXruB4Zbi8o2g1ouDQu8khzhwcPrDJBGsKRRilvPcx4CMciXTnuY/FJbb phyg== X-Gm-Message-State: AOAM530CJkFd0gdzLLu4x7qWHtTIgbsUnpXqUGFpDm4S8dEAkiCqam0m V6+hC/uQdSri16GoF1Fjc2foEEWvQBGmVNkmzABvlg== X-Google-Smtp-Source: ABdhPJy0vopcqwR4iTSlJXztJsGOw48ldEPlvVdfs/Llu7oDBms47NM/sXk+Rd3dfcRhsS4b4DjcW8q1y249GpyQmok= X-Received: by 2002:a25:2d3:: with SMTP id 202mr634977ybc.111.1636389993100; Mon, 08 Nov 2021 08:46:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 8 Nov 2021 08:46:22 -0800 Message-ID: Subject: Re: Prevent new line when using edit-command-line To: Muhmud Ahmad Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27323 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: 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).