}
}
+/* Initialize the color information. */
void color_init(void)
{
assert(openfile != NULL);
- if (has_colors()) {
+ if (has_colors() && can_change_color()) {
const colortype *tmpcolor;
#ifdef HAVE_USE_DEFAULT_COLORS
bool defok;
openfile->current = openfile->fileage;
#ifdef ENABLE_COLOR
- /* If we're loading into a new buffer, update the buffer's
- * associated colors, if applicable. */
+ /* If we're loading into a new buffer, update the colors to account
+ * for it, if applicable. */
if (new_buffer)
color_update();
#endif
titlebar(NULL);
#ifdef ENABLE_COLOR
- /* Update the buffer's associated colors, if applicable. */
- color_update();
+ /* Make sure we're using the buffer's associated colors, if
+ * applicable. */
+ color_init();
#endif
/* Update the edit window. */