* src/term.c (Ftty_display_color_cells): Return 0 in case of an error, not nil.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-201
Ami Fischman <ami at fischman dot org>
Friedrich Delgado Friedrichs <friedel at nomaden dot org>
Yoshiaki Kasahara <kasahara at nc dot kyushu-u dot ac dot jp>
+Jurej Kubelka <Juraj dot Kubelka at email dot cz>
Istvan Marko <mi-mtty ar kismala dot com>
Dan Nicolaescu <dann at ics dot uci dot edu>
Gergely Nagy <algernon at debian dot org>
{
struct display *d = get_tty_display (display);
if (!d)
- return Qnil;
+ return make_number (0);
else
return make_number (d->display_info.tty->TN_max_colors);
}