From 810e16013668e6a6a77e0d05b99fe0991d1507bf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 3 Dec 2021 23:12:02 -0800 Subject: [PATCH] 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. --- src/lua.c | 4 ++-- 1 file 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))