fix colors in startup errors

This commit is contained in:
Kartik K. Agaram 2021-12-06 22:10:10 -08:00
parent bba3559b06
commit 978f698bfd
1 changed files with 1 additions and 0 deletions

View File

@ -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);