Commit a8f99d11 authored by Alan Third's avatar Alan Third

Recreate macOS color list if it is corrupt

* src/nsterm.m (ns_term_init): Generate the color list if there are
less colors in the existing file than in rgb.txt.
parent b04d391d
Pipeline #6190 failed with stage
in 69 minutes and 36 seconds
......@@ -5476,7 +5476,8 @@ Needs to be here because ns_initialize_display_info () uses AppKit classes.
{
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;
......
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