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

unmetafy_line in 3.0.5



hi,

I got this bug report from an NT user of zsh, and looking at the code, I 
thought it might be a generic problem with 3.0.5

The reported problem was that if you had, for example,

bindky ^B reverse-menu-complete

and then did ^B on an empty line, zsh would crash on NT.

looking at the crash, it happens in ztrsub() when called from unmetafy_line.

/**/
void
unmetafy_line(void)
{
    cs = ztrsub((char *) line + cs, (char *) line);
    (void) unmetafy((char *) line, &ll);
}


When I look at the parameters, cs is -1.  Now, I don't know if this
particular
variable never becomes -1 on unix, so perhaps someone can tell me if
this is indeed a generic zsh problem or should I try to figure out how 
cs came to be -1 on an empty line ?

thanks,
-amol



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