aboutsummaryrefslogtreecommitdiffstats
path: root/src/custom.c
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2017-12-17 08:25:10 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2018-05-26 11:31:43 +0200
commitbb7381765c435ac37e133f7fcc14a07823539050 (patch)
treef0902c3c714dca97607000e464b52df37aa44e01 /src/custom.c
parenta5cc46cd550b335b0de6ce7658e0c1ca5068255e (diff)
downloadcalcurse-bb7381765c435ac37e133f7fcc14a07823539050.tar.gz
calcurse-bb7381765c435ac37e133f7fcc14a07823539050.zip
Scrollbar and right window border (corrected)
When a scrollbar is on display in APP or TOD windows, the right vertical border (outside the scrollbar) is not highlighted when the window is selected. The scrollbar is always highlighted: - when APP or TOD is deselected - in configuration windows where borders otherwise are not The patch moves the scrollbar parameters (except highlight) from arguments of draw_scrollbar() to the function itself. The highlight argument was 1; instead it is set higher in the call hierarchy (wins_update_panels()) and passed on down. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/custom.c')
-rw-r--r--src/custom.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/custom.c b/src/custom.c
index 6e57167..6516afb 100644
--- a/src/custom.c
+++ b/src/custom.c
@@ -812,7 +812,7 @@ void custom_general_config(void)
general_option_height, print_general_option);
listbox_load_items(&lb, NB_OPTIONS);
listbox_draw_deco(&lb, 0);
- listbox_display(&lb);
+ listbox_display(&lb, NOHILT);
wins_set_bindings(bindings, ARRAY_SIZE(bindings));
wins_status_bar();
wnoutrefresh(win[STA].p);
@@ -846,7 +846,7 @@ void custom_general_config(void)
}
}
- listbox_display(&lb);
+ listbox_display(&lb, NOHILT);
wins_status_bar();
wnoutrefresh(win[STA].p);
wmove(win[STA].p, 0, 0);
@@ -951,7 +951,7 @@ void custom_keys_config(void)
custom_keys_config_bar();
selrow = selelm = 0;
nbrowelm = print_keys_bindings(kwin.inner, selrow, selelm, LINESPERKEY);
- wins_scrollwin_display(&kwin);
+ wins_scrollwin_display(&kwin, NOHILT);
firstrow = 0;
lastrow = firstrow + nbdisplayed - 1;
for (;;) {
@@ -1020,7 +1020,7 @@ void custom_keys_config(void)
selrow,
selelm,
LINESPERKEY);
- wins_scrollwin_display(&kwin);
+ wins_scrollwin_display(&kwin, NOHILT);
wins_redrawwin(grabwin);
continue;
}
@@ -1073,7 +1073,7 @@ void custom_keys_config(void)
nbrowelm =
print_keys_bindings(kwin.inner, selrow, selelm,
LINESPERKEY);
- wins_scrollwin_display(&kwin);
+ wins_scrollwin_display(&kwin, NOHILT);
}
}