projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b04d391
)
Recreate macOS color list if it is corrupt
author
Alan Third
<alan@idiocy.org>
Wed, 20 May 2020 20:28:25 +0000
(21:28 +0100)
committer
Alan Third
<alan@idiocy.org>
Sat, 1 Aug 2020 18:46:51 +0000
(19:46 +0100)
* src/nsterm.m (ns_term_init): Generate the color list if there are
less colors in the existing file than in rgb.txt.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 0e405fc0175751829b77e97e256994598e341b00..df7f716f51e1baf80e39d1112dbeff28f3e7caca 100644
(file)
--- 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;