This commit is contained in:
Kartik K. Agaram 2021-12-07 17:28:46 -08:00
parent 46aa8c2cf8
commit 20373578f4
1 changed files with 2 additions and 2 deletions

View File

@ -107,9 +107,9 @@ 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));
attron(COLOR_PAIR(COLOR_PAIR_ERROR));
render_wrapped_text(LINES-10, COLS/2, COLS, Previous_error);
attrset(A_NORMAL);
attroff(COLOR_PAIR(COLOR_PAIR_ERROR));
}