summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2022-03-23 15:45:37 -0300
committerAndrés <andmarti@gmail.com>2022-03-23 15:45:37 -0300
commit352e4251375a1b026e23c8cdd4aca82443310497 (patch)
treea79528050661098bc89c37e612fe9282128d5d92 /src
parentb95b1f509175eb183d76cb794f26ad7f358f611a (diff)
fix inputpad color after sc_error
Diffstat (limited to 'src')
-rw-r--r--src/tui.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tui.c b/src/tui.c
index 17a4f58..7621993 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -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);