diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-07 17:28:46 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-07 17:28:46 -0800 |
commit | 20373578f46e076cf5af29b4cd37c4d7029c54fd (patch) | |
tree | 57012eaa9adaafb2d5eeae7f88dddafbc43af636 | |
parent | 46aa8c2cf8bdc6d45fb1bbf06b595f4590c5500c (diff) | |
download | teliva-20373578f46e076cf5af29b4cd37c4d7029c54fd.tar.gz |
cleaner
-rw-r--r-- | src/lua.c | 4 |
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)); } |