Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: recipe for a ZLE segfault



pacman@xxxxxxx 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@xxxxxx>       Tel: +39 50 844536
WWW:  http://www.ifh.de/~pws/
Gruppo Teorico, Dipartimento di Fisica
Piazza Torricelli 2, 56100 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author