diff options
author | Andrés <andmarti@gmail.com> | 2022-03-23 15:45:37 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2022-03-23 15:45:37 -0300 |
commit | 352e4251375a1b026e23c8cdd4aca82443310497 (patch) | |
tree | a79528050661098bc89c37e612fe9282128d5d92 /src | |
parent | b95b1f509175eb183d76cb794f26ad7f358f611a (diff) |
fix inputpad color after sc_error
Diffstat (limited to 'src')
-rw-r--r-- | src/tui.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -186,8 +186,12 @@ void ui_stop_screen() { set_term(sstdout); endwin(); + // ncurses memory leak? + // delscreen(sstdout); set_term(sstderr); endwin(); + // ncurses memory leak? + // delscreen(sstderr); return; } @@ -267,10 +271,11 @@ void ui_sc_msg(char * s, int type, ...) { wmove(input_pad, 0, 0); status_line_empty = 0; - ui_refresh_pad(0); #ifdef USECOLORS ui_set_ucolor(input_win, &ucolors[INPUT], DEFAULT_COLOR); + ui_set_ucolor(input_pad, &ucolors[NORMAL], DEFAULT_COLOR); #endif + ui_refresh_pad(0); if (type == DEBUG_MSG || (session != NULL && session->cur_doc != NULL && session->cur_doc->loading && type == ERROR_MSG)) { wtimeout(input_pad, -1); wgetch(input_pad); |