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);
}
/* Initialize the color information. */
void color_init(void)
/* Initialize the color pairs for the current syntax. */
void prepare_palette(void)
{
const colortype *ink;
bool using_defaults = FALSE;

View File

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

View File

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