commit 382ec84248a5985f2629d32ad8580753ea02ddf5
parent bc4240dda5ef0c956b302ddc62e904a1767490d7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 28 Apr 2020 16:38:27 +0200
tweaks: rename a function, to match with the boolean that guards it
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/color.c b/src/color.c
@@ -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;
diff --git a/src/proto.h b/src/proto.h
@@ -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);
diff --git a/src/winio.c b/src/winio.c
@@ -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. */