diff options
author | Eli Zaretskii <[email protected]> | 2000-02-02 11:34:25 +0000 |
---|---|---|
committer | Eli Zaretskii <[email protected]> | 2000-02-02 11:34:25 +0000 |
commit | 26b09289edeee16d2f20450bdf77dfa111ba9183 (patch) | |
tree | 02db679d5ed33b1dc4741b6e80cdb1beddf44b32 /lisp/term | |
parent | c527e60052301753343e2d3d697c2675ab8df5d2 (diff) |
Don't count colors without RGB values as gray shades.
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/tty-colors.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el index 03fef2a342..1fe9819254 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)) |