diff options
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/terminfo.c | 2 | ||||
-rw-r--r-- | Src/Modules/terminfo.mdd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/terminfo.c b/Src/Modules/terminfo.c index 4fe1b3cec..52b0b27f8 100644 --- a/Src/Modules/terminfo.c +++ b/Src/Modules/terminfo.c @@ -67,7 +67,7 @@ bin_echoti(char *name, char **argv, char *ops, int func) /* get a string-type capability */ t = (char *)tigetstr(s); - if (!t || !*t) { + if (!t || t == (char *)-1 || !*t) { /* capability doesn't exist, or (if boolean) is off */ zwarnnam(name, "no such terminfo capability: %s", s, 0); return 1; diff --git a/Src/Modules/terminfo.mdd b/Src/Modules/terminfo.mdd index 742c35745..251281742 100644 --- a/Src/Modules/terminfo.mdd +++ b/Src/Modules/terminfo.mdd @@ -1,5 +1,5 @@ name=zsh/terminfo -link=`if test "x$ac_cv_have_tigetstr" = xyes; then echo either; else echo no; fi` +link='if test "x$ac_cv_func_tigetstr" = xyes; then echo either; else echo no; fi' load=yes autobins="echoti" |