Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:subject:message-id:mail-followup-to:references
         :content-type:content-disposition:in-reply-to;
        bh=jbWSXpxsfw26is0DLWaxBtNl/kMfbQx+m1LFf7MNA7s=;
        b=VMvywXqMDQDlD0eJ1u2/fVG99vrHaaNv0GJVJ/4x/UXrgUZygMY4DmCgdAnSYu/nAe
         PG2V5dxsR8MworQgaZCiF3NmTNJqE7Bzl5xf12TdaS+Al/swH3AYOjwD4MwGWoq9nvwD
         0xgjTbPT4tA+06AQGT1pD8LSB+gGr5BiOoYUaebs94s8elms5hI9GORY0jKIfEmAkONk
         XsPtpLoWyG6XmuJNS4Ak7Bj5uVIwvTpHlHwKiRu1J9e/A1wHy+YItqxVYRQOziioc6NO
         2nmdOoe4gSwEjxwu7n4iE8jYhX6By0Vno5AbPTxuVN/pgozKgqLi7g1hadxafNypQFKN
         G5Zg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to
         :references:content-type:content-disposition:in-reply-to;
        bh=jbWSXpxsfw26is0DLWaxBtNl/kMfbQx+m1LFf7MNA7s=;
        b=M5bIK7VB16bpwtA6RjCNd5GKNmGUH3hxEGawN7y5R4Qu6J50akFEEDv0mV3Ape5zTo
         h6X/r5PANvB+SSmit/g90f3RcL/RS0EaskVxkTcFdsm49tb+nbqHPNOBrdWhB7xsrRta
         VxRUZkJWIOVF3ZEhrkeFxENO2cXKf/f1aPkEAT8eNPe2xNJiTL5RPajJN8E4tC+6Njzt
         obhQkZ4fU0T2qOGpYEnGC/4Xo3Y/Kfy6rbcuwOED1ee2V7+kBNLBWlB8n1uk0OlENx/7
         k5MOmM8pLhuxjtEJDCJ3/vjcwVeHeZakAy/Blc4X9O1om+2xksC13fFxR+9JepGA2K19
         jK4A==
X-Gm-Message-State: AG10YOSy4R4zA/L1ED/sn4aIh4bB1Uj6qsFUmp+W0Iz214FgdIeu00eBpPXcRkLs7P9Vyg==
X-Received: by 10.202.216.4 with SMTP id p4mr35351386oig.86.1456458898091;
        Thu, 25 Feb 2016 19:54:58 -0800 (PST)
Date: Thu, 25 Feb 2016 21:54:56 -0600
From: Joe M <joe9mail@gmail.com>
To: zsh-users@zsh.org, zsh-workers@zsh.org, schaefer@zsh.org
Subject: Re: Behaviour of zle list-choices
Message-ID: <20160226035455.GA4935@master>
Mail-Followup-To: zsh-users@zsh.org, zsh-workers@zsh.org, schaefer@zsh.org
References: <CAHjjW16S5=2=qQrRhZUtgFOC5GUW28SnMHcqa=yCDk7Mdap2eA@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx"
Content-Disposition: inline
In-Reply-To: <CAHjjW16S5=2=qQrRhZUtgFOC5GUW28SnMHcqa=yCDk7Mdap2eA@mail.gmail.com>
X-Seq: zsh-workers 38031

--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello Bart,

I have a multi-line prompt.

When I have an empty prompt and I press Ctrl-C, I get the next prompt.
But, when I have the list-choices active and I press Ctrl-C, the line
above the command is disappearing.

For example, this is the behavior when zle list-choices is not active
and I press Ctrl-C:

- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -
l
- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -

This is the behavior, when zle list-choices is active and I press
Ctrl-C:

- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -
l
ls
- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -

It should have been:

- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -
l
- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -
ls
- (0:i:/tmp/zsh-build)  -  -  -  -  -  -  -


When I "git bisect" zsh, I found that this:

691547cda60f0512c645e80246292936e660f326 is the first bad commit
commit 691547cda60f0512c645e80246292936e660f326
Author: Barton E. Schaefer <schaefer@zsh.org>
Date:   Wed Oct 29 08:45:57 2014 -0700

    33563: Completion/Base/Core/_main_complete, Src/Zle/complist.c: fix thinko in status message for INT/QUIT signals; check errflag in output loops

    Two semi-related patches for keyboard interrupt handling in completion,
    most importantly so that unexpectedly long completion listings can be
    interrupted.

:100644 100644 54fac61ca8d2f0d76020fe91c58600c425d6c6c8 676d2697968a06c855091681dd5ba4c8e15f6cf3 M        ChangeLog
:040000 040000 4bd268b6f03e9232602127edfa5c1d1257477a3a 0604aba5e8a729e0e3e28aa5aaaa9db0dba6a1ad M        Completion
:040000 040000 28150242dcea19e15813219cdae0c8bed8a0c3f6 7a23b88a420c221c2dd26b45e1ca0cac774a477d M        Src

Any kind comments, please?

Thanks
Joe

Joe M wrote:
> Hello,
>
> In an earlier release of zsh, when list-choices is active and I press
> "Ctrl-C", the current line gets killed and I get a new prompt.
>
> Now (zsh 5.2), When I press "Ctrl-C", I get the message: "TRAPINT:1:
> not an identifier".
>
> Any kind thoughts, please?
>
> Thanks
> Joe

--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWz8yPAAoJENvmPC7PRKkILGMQAIcpPwHG58lXTMmTRCfyqWq9
y33H5Ck5dsie9TLzAgCXjmAcEhYGBm0yohFtES1izhNsic2kSYx+SRn4Ld9kycK+
A1iXFGTy47OEX3wS4yeVkuQ4MB4vKn3EVLs0TsTNe/T/M3vGjLdqrwy/0D3Btn8d
7QCoeA4m6r5EqOQkrTo24oHYHJGMnHEj8oXzDImKGQEJrvSyaVQ4H5SQaPLjgQcj
88YS7s4E0s1fMWm2GYXmzgoHrw9UpFcdPa0E0AVfEoQB0xyhrgjdauL/nFIg5+x8
YKggRgOx1WDtVRR3S+aUxP0y63pVp3L7rt6Ae1GtyBtd3m0HsNujoJV8l6HIN35X
ecBKemwZw9UqZ39MfmvSyAftiuOlJcilqgEJ5BIh6gHxq455K9g1rd1Cyt0PDssF
yFhIW0/h7jmsuBD0/fV/6mAVyQQ5OOLsqn3feM5M6iaGpJEc/MaMFX73U4Uj1eg+
LVzLJ7oZTBhikzaoSWu0848SwcCDmadXJ6RdGfLokhty5kyBylyAq5HNmdvtVYGq
z886ckWL/6L/gQBQrIV775d4DByXWdoR1pvQMXpyeAJVS+CvLjVg7qjqGgFlB71E
qZS25uNpMuTkgYg8CAIR8vBpY2lIYBaw3DW/bc0Rfs7sfq1ffuu62fXECLaQVgcg
n/dkQNtq4NdJFS6QBjke
=wdN3
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--

