about summary refs log tree commit diff stats
path: root/src/lua.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-07 17:28:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-07 17:28:46 -0800
commit20373578f46e076cf5af29b4cd37c4d7029c54fd (patch)
tree57012eaa9adaafb2d5eeae7f88dddafbc43af636 /src/lua.c
parent46aa8c2cf8bdc6d45fb1bbf06b595f4590c5500c (diff)
downloadteliva-20373578f46e076cf5af29b4cd37c4d7029c54fd.tar.gz
cleaner
Diffstat (limited to 'src/lua.c')
-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));
 }