From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8207 invoked by alias); 28 Sep 2016 04:11:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21980 Received: (qmail 14245 invoked from network); 28 Sep 2016 04:11:37 -0000 X-Qmail-Scanner-Diagnostics: from sender163-mail.zoho.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.201.84.163):SA:0(0.7/5.0):. Processed in 0.148928 secs); 28 Sep 2016 04:11:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: hong@topbug.net X-Qmail-Scanner-Mime-Attachments: |signature.asc| X-Qmail-Scanner-Zip-Files: | Received-SPF: neutral (ns1.primenet.com.au: 74.201.84.163 is neither permitted nor denied by SPF record at servers.mcsv.net) To: zsh-users@zsh.org From: Hong Xu Subject: ZLE_LINE_ABORTED: how to restore the last non-blank aborted line? Message-ID: Date: Tue, 27 Sep 2016 21:11:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JN9U07IR8WTBoguf3bbhKQ4rNaGNECF0K" X-Zoho-Virus-Status: 1 --JN9U07IR8WTBoguf3bbhKQ4rNaGNECF0K Content-Type: multipart/mixed; boundary="dgwsUkhj8UiPMTDTfqcjX9Uh9FVR74oxR"; protected-headers="v1" From: Hong Xu To: zsh-users@zsh.org Message-ID: Subject: ZLE_LINE_ABORTED: how to restore the last non-blank aborted line? --dgwsUkhj8UiPMTDTfqcjX9Uh9FVR74oxR Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, While ZLE_LINE_ABORTED is useful for preserving the last aborted line, but I think the real interest is the last aborted non-blank line -- ZLE_LINE_ABORTED would turn empty if ^C is pressed on an empty line disregarding what it was. This is annoying since sometimes auto completion stuck and more than one ^C is used to cancel that. Is there any way to preserve it in this case in zsh? Thanks! Hong --dgwsUkhj8UiPMTDTfqcjX9Uh9FVR74oxR-- --JN9U07IR8WTBoguf3bbhKQ4rNaGNECF0K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX60LvAAoJECZsfTOCL4R42N4P/3CQbzR6RX0djwL+t7A+aTn0 ZsNYNih7sQKTw43qvi2ZY+qtNsVl2IA4BCrftrbF6fLL7StkQhRdT/25SqUNVnB9 JW4UrKb7V2CJVzsgDrFjm08B+3MCQoVKXSahBb02KZ0oxUdmBCOsRvVunzwRnCF9 3ArQt1QbfDZOlHfmHZHTVQ1k4wD6LaaCDvcCv2qD+9t4S3NYzUyRJIRMKmw2RKBY p3Sf6lbWvGWQlRvhp1Wre6XQXh3UM6q08ZEFrcK0UqCavJvvck/tJeCvHMZ3Z0nq wLblAVU2IKhZOrONd7SrrBueKBkimFD+T4WENGFJcj9Hixiff+sRtJYy/7b1cFwo BzXMELzygt1UvzxWoM7ROupqv+dskEFBad08yKYQLqkvzdEm7ps4YtJ8RXQUJ6za vVEUkGEydp3H9tbl02KHvan8E/B+8RcH/xRrgkioihzTY9ZEU7gPcE1+jenQPza3 0FZRamOSAJeUkB90YL+h/Je4voLNHxW90K+54J2+MnHZYUEnCM5h5hA3/rc3PXwt WNcGRe67U87GbT/5ujBxbKcW7RGlQeMa8SdbWAZCQXY3kMmC0kXktj+qH3FTrtes stmi1+BHdHoS7vUROX3FBPZQeLx74791XJCQvmWJky+TlEgQIVe/r/7IoFmEAcqn yXvHIxzRE93copuLJdHR =tUcT -----END PGP SIGNATURE----- --JN9U07IR8WTBoguf3bbhKQ4rNaGNECF0K--