Commit 8c8d5f35 authored by Karoly Lorentey's avatar Karoly Lorentey
Browse files

Fix byte-compile errors during bootstrap. (Reported by Juraj Kubelka.)

* src/term.c (Ftty_display_color_cells): Return 0 in case of an error, not nil.

parent 933d4afd
......@@ -185,6 +185,7 @@ Romain Francoise <romain at orebokech dot com>
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>
......@@ -1996,7 +1996,7 @@ DEFUN ("tty-display-color-cells", Ftty_display_color_cells,
struct display *d = get_tty_display (display);
if (!d)
return Qnil;
return make_number (0);
return make_number (d->display_info.tty->TN_max_colors);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment