tweaks: rename a function, to match with the boolean that guards it
parent
bc4240dda5
commit
382ec84248
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue