From 060ac27a1720fc7c207dfda8fc6fb4377db49971 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 10 Jun 2000 17:30:22 +0000 Subject: 11850: Fix crash in menu-select on dumb terminals. Also, a ChangeLog entry for PWS's 11842. --- Src/Zle/complist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index cbc39266f..c1481612b 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -1627,6 +1627,8 @@ domenuselect(Hookdef dummy, Chdata dat) 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) { -- cgit 1.4.1