summaryrefslogtreecommitdiffstats
path: root/src/help.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-05-08 08:58:20 -0300
committerAndrés <andmarti@gmail.com>2021-05-08 08:58:20 -0300
commitf9c591171a878ddc52d547cd8d784946f15824bb (patch)
tree04043efd96dbcf0e298b8b46b1bc8a2d2dd0040b /src/help.c
parentcbd7b1335355ac7cb84b97421d3c04684d4eecfa (diff)
paint background with DEFAULT color. #547
Diffstat (limited to 'src/help.c')
-rw-r--r--src/help.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/help.c b/src/help.c
index d0939b2..b83b0b6 100644
--- a/src/help.c
+++ b/src/help.c
@@ -160,6 +160,7 @@ void help() {
wclrtoeol(input_pad);
ui_refresh_pad(0);
+ wbkgd(main_win, COLOR_PAIR((ucolors[DEFAULT].fg+1) * (COLORS) + ucolors[DEFAULT].bg + 2));
ui_set_ucolor(main_win, &ucolors[NORMAL], DEFAULT_COLOR);
wtimeout(input_win, -1);
noecho();
@@ -341,6 +342,7 @@ void find_word(char * word, char order) {
if (look_result == -1) {
sc_info("Pattern not found.");
}
+ wbkgd(input_win, COLOR_PAIR((ucolors[DEFAULT].fg+1) * (COLORS) + ucolors[DEFAULT].bg + 2));
ui_set_ucolor(input_win, &ucolors[NORMAL], DEFAULT_COLOR);
return;
}