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.
This commit is contained in:
Kartik K. Agaram 2021-12-03 23:12:02 -08:00
parent 294c135d3f
commit 810e160136
1 changed files with 2 additions and 2 deletions

View File

@ -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))