Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: unknown TERM problem.
- X-seq: zsh-workers 11850
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Tanaka Akira <akr@xxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: unknown TERM problem.
- Date: Sat, 10 Jun 2000 16:59:06 +0000
- In-reply-to: <hvo3dmmhshc.fsf@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <hvo3dmmhshc.fsf@xxxxxxxxxxxxxxx>
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