summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nsterm.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 0e405fc0175..df7f716f51e 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5476,7 +5476,8 @@ ns_term_init (Lisp_Object display_name)
{
NSColorList *cl = [NSColorList colorListNamed: @"Emacs"];
- if ( cl == nil )
+ /* There are 752 colors defined in rgb.txt. */
+ if ( cl == nil || [[cl allKeys] count] < 752)
{
Lisp_Object color_file, color_map, color;
unsigned long c;