about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua.c b/src/lua.c
index e846f72..441ec7b 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -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));
 }