Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash in reverse-menu-complete with menu-selection
- X-seq: zsh-workers 28202
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Crash in reverse-menu-complete with menu-selection
- Date: Tue, 24 Aug 2010 19:38:21 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=rP2tPCD7Wt8TxEwEZtMA+uxPlrFIqnShSI8fLGRwyJE=; b=DxPPSUbcWqWT83EIHBES3MvJbi/zb6Lyz/3ZdY8NNr7kmJZHUto3ajDGqolMW65AxC ptIBwjsn5++1MU6CsBJyYY2fg6nX/afc53+X23npfnh37jrxgV8u7e74i9hWAFFuUtE+ 35R7QrpBAk5UTxRHyuQmhGpJyzkbjqkHcJcBE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=MDH9xyqLtIsS1WnTGWn1jRtg8BqJLOqWaKQQk2wgkg+OPLnEoB6bm3oyuiEMOX3mYL MD1SHs8Szqt5KtrmUD1bbREZIdhiGJRq8Xb09wtPFkK1BIqRBAipMqz4PI7uFZy2zV2x 0l2xYQagJUijxZMnlcaKKamySIpjwtWySEoFY=
- In-reply-to: <100824094939.ZM28482@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTikuH91W+P4bWKTEVzW=gtBZQfPwDJQphKyy=mz1@xxxxxxxxxxxxxx> <100824081606.ZM28228@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTik+UHjVpnwq7LiKQrRZQJQGDi0t+1J3zKWEwLJq@xxxxxxxxxxxxxx> <100824094939.ZM28482@xxxxxxxxxxxxxxxxxxxxxx>
On 24 August 2010 18:49, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Aug 24, 5:23pm, Mikael Magnusson wrote:
> }
> } > I can't reproduce, but when I hit that first ctrl-f I still get nothing,
> } > as reported in the earlier thread about menu-select crashing.
> }
> } Which one?
>
> Starts with workers/28150, here:
> http://www.zsh.org/mla/workers/2010/msg00599.html
> Get's interesting 28158, here:
> http://www.zsh.org/mla/workers/2010/msg00607.html
Compiling with --enable-zsh-debug prints zle_utils.c:1153: line
metafied which means... something? It looks like one of zleline and
zlemetaline is always NULL, and at this point the wrong one is.
Hmm... this fixes it (ie, this specific case) but I have absolutely no
idea which of these functions expect the line to be metafied and
unmetafied, and who is doing it wrong.
diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c
index bac072e..37ccc7b 100644
--- a/Src/Zle/complist.c
+++ b/Src/Zle/complist.c
@@ -3217,7 +3217,9 @@ domenuselect(Hookdef dummy, Chdata dat)
!strcmp(cmd->nam, "reverse-menu-complete")) {
mode = 0;
comprecursive = 1;
+ unmetafy_line();
reversemenucomplete(zlenoargs);
+ metafy_line();
mselect = (*(minfo.cur))->gnum;
setwish = 1;
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author