tweaks: rename a function, to match with the boolean that guards it

master
Benno Schulenberg 2020-04-28 16:38:27 +02:00
parent bc4240dda5
commit 382ec84248
3 changed files with 4 additions and 4 deletions

View File

@ -109,8 +109,8 @@ void set_colorpairs(void)
set_syntax_colorpairs(sntx); set_syntax_colorpairs(sntx);
} }
/* Initialize the color information. */ /* Initialize the color pairs for the current syntax. */
void color_init(void) void prepare_palette(void)
{ {
const colortype *ink; const colortype *ink;
bool using_defaults = FALSE; bool using_defaults = FALSE;

View File

@ -243,7 +243,7 @@ bool is_valid_unicode(wchar_t wc);
/* Most functions in color.c. */ /* Most functions in color.c. */
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
void set_colorpairs(void); void set_colorpairs(void);
void color_init(void); void prepare_palette(void);
void find_and_prime_applicable_syntax(void); void find_and_prime_applicable_syntax(void);
void set_up_multicache(linestruct *line); void set_up_multicache(linestruct *line);
void check_the_multis(linestruct *line); void check_the_multis(linestruct *line);

View File

@ -3260,7 +3260,7 @@ void edit_refresh(void)
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
/* When needed, initialize the colors for the current syntax. */ /* When needed, initialize the colors for the current syntax. */
if (!have_palette) if (!have_palette)
color_init(); prepare_palette();
#endif #endif
/* If the current line is out of view, get it back on screen. */ /* If the current line is out of view, get it back on screen. */