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-03 23:12:02 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-03 23:12:02 -0800
commit810e16013668e6a6a77e0d05b99fe0991d1507bf (patch)
tree343e9ccea6577666e2f101ef6793b3ca91874b00 /src/lua.c
parent294c135d3ffd8e937bef404703695d7d79599f8e (diff)
downloadteliva-810e16013668e6a6a77e0d05b99fe0991d1507bf.tar.gz
another fix for colors
I'd assumed that assume_default_colors updates fg/bg -1, but it doesn't.
Looks like I can't ever use -1 colors.
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 51e2c3a..e73ac49 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -895,9 +895,9 @@ extern void cleanup_curses (void);
 void developer_mode (lua_State *L, const char *status_message) {
   /* clobber the app's ncurses colors; we'll restart the app when we rerun it. */
   for (int i = 0; i < 8; ++i)
-    init_pair(i, i, -1);
+    init_pair(i, i, 15);
   for (int i = 0; i < 8; ++i)
-    init_pair(i+8, -1, i);
+    init_pair(i+8, 0, i);
   nodelay(stdscr, 0);  /* make getch() block */
   int switch_to_big_picture_view = 1;
   if (editor_view_in_progress(L))