Mercurial > emacs
changeset 27569:c34a61cbfbf6
Don't count colors without RGB values as gray shades.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Wed, 02 Feb 2000 11:34:25 +0000 |
parents | fd817cff1000 |
children | 33c77685f4a2 |
files | lisp/term/tty-colors.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/term/tty-colors.el Wed Feb 02 11:33:01 2000 +0000 +++ b/lisp/term/tty-colors.el Wed Feb 02 11:34:25 2000 +0000 @@ -971,7 +971,8 @@ 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))