* recipe for a ZLE segfault
@ 1998-08-18 5:22 pacman
1998-08-18 10:29 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: pacman @ 1998-08-18 5:22 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text, Size: 3023 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: recipe for a ZLE segfault
1998-08-18 5:22 recipe for a ZLE segfault pacman
@ 1998-08-18 10:29 ` Peter Stephenson
1998-08-18 18:35 ` pacman
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 1998-08-18 10:29 UTC (permalink / raw)
To: pacman, Zsh hackers list
pacman@cqc.com wrote:
> $ zsh-3.1.4 -f
> londo% bindkey -v
> londo% bindkey '^[[A' history-beginning-search-backward
> londo%
>
> Now type ^[kBBC^[[A^M (ESC k B B C Up-arrow Enter). BLAM!
I get this too. Does this fix it? (It looks like it's necessary anyway,
according to my reading of mkundoent().)
*** Src/Zle/zle_utils.c.ch Wed Apr 29 23:42:46 1998
--- Src/Zle/zle_utils.c Tue Aug 18 12:24:07 1998
***************
*** 516,521 ****
--- 516,522 ----
line[ll - 1 - suf] == lastline[lastll - 1 - suf]; )
suf++;
ch = zalloc(sizeof(*ch));
+ ch->next = NULL;
ch->hist = histline;
ch->off = pre;
if(suf + pre == lastll)
--
Peter Stephenson <pws@ifh.de> Tel: +39 50 844536
WWW: http://www.ifh.de/~pws/
Gruppo Teorico, Dipartimento di Fisica
Piazza Torricelli 2, 56100 Pisa, Italy
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: recipe for a ZLE segfault
1998-08-18 10:29 ` Peter Stephenson
@ 1998-08-18 18:35 ` pacman
0 siblings, 0 replies; 3+ messages in thread
From: pacman @ 1998-08-18 18:35 UTC (permalink / raw)
To: zsh-workers
Peter Stephenson writes the following:
>
>I get this too. Does this fix it? (It looks like it's necessary anyway,
>according to my reading of mkundoent().)
>
>*** Src/Zle/zle_utils.c.ch Wed Apr 29 23:42:46 1998
>--- Src/Zle/zle_utils.c Tue Aug 18 12:24:07 1998
>***************
>*** 516,521 ****
>--- 516,522 ----
> line[ll - 1 - suf] == lastline[lastll - 1 - suf]; )
> suf++;
> ch = zalloc(sizeof(*ch));
>+ ch->next = NULL;
> ch->hist = histline;
> ch->off = pre;
> if(suf + pre == lastll)
Yes, this takes care of it.
--
Alan Curry
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-08-18 18:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-18 5:22 recipe for a ZLE segfault pacman
1998-08-18 10:29 ` Peter Stephenson
1998-08-18 18:35 ` pacman
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).