From 26b09289edeee16d2f20450bdf77dfa111ba9183 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 2 Feb 2000 11:34:25 +0000 Subject: [PATCH] Don't count colors without RGB values as gray shades. --- lisp/term/tty-colors.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el index 03fef2a3421..1fe98192540 100644 --- a/lisp/term/tty-colors.el +++ b/lisp/term/tty-colors.el @@ -971,7 +971,8 @@ A color is considered gray if the 3 components of its RGB value are equal." r (car desc) g (cadr desc) b (car (cddr desc))) - (and (eq r g) (eq g b) + (and (numberp r) + (eq r g) (eq g b) (setq count (1+ count))) (setq colors (cdr colors))) count)) -- 2.39.5