From 978f698bfd16fad492fc927d9faa9e84c63be7ae Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 6 Dec 2021 22:10:10 -0800 Subject: fix colors in startup errors --- src/lua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lua.c b/src/lua.c index 9f99b1f..5874502 100644 --- a/src/lua.c +++ b/src/lua.c @@ -106,6 +106,7 @@ static int render_wrapped_text (int y, int xmin, int xmax, const char *text) { const char *Previous_error = NULL; void render_previous_error (void) { if (!Previous_error) return; + init_pair(COLOR_PAIR_ERROR, COLOR_ERROR_FOREGROUND, COLOR_ERROR_BACKGROUND); attrset(COLOR_PAIR(255)); render_wrapped_text(LINES-10, COLS/2, COLS, Previous_error); attrset(A_NORMAL); -- cgit 1.4.1-2-gfad0