diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-12-05 11:00:08 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-12-05 11:00:08 +0000 |
commit | bd588f625a1d3c9cd8bf255d1109a36013d2f094 (patch) | |
tree | 5d4f72383dedbbc88d6725e6b879cc11330ee7a8 /Src | |
parent | 0c96a1b9637487a49bcbdf8dbd8577a71a69203c (diff) | |
download | zsh-bd588f625a1d3c9cd8bf255d1109a36013d2f094.tar.gz zsh-bd588f625a1d3c9cd8bf255d1109a36013d2f094.tar.xz zsh-bd588f625a1d3c9cd8bf255d1109a36013d2f094.zip |
terminfo tweaks
Diffstat (limited to 'Src')
-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" |