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

PATCH: Re: unknown TERM problem.



On Jun 10,  5:04pm, Tanaka Akira wrote:
} Subject: unknown TERM problem.
}
} I found that unknown TERM causes core dump.

Actually, any terminal that doesn't have a programmable cursor will have
the same effect, e.g. TERM=dumb.

The following seems to be the correct fix; domenuselect() is a hook, so
there isn't any way to catch it before the function is entered.

Index: Src/Zle/complist.c
===================================================================
@@ -1627,6 +1627,8 @@
     int space, lbeg = 0, step = 1, wrap, pl = nlnct, broken = 0, first = 1;
     char *s;
 
+    if (!mtab)
+	return 0;
     if (fdat || (dummy && (!(s = getsparam("MENUSELECT")) ||
 			   (dat && dat->num < atoi(s))))) {
 	if (fdat) {

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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