diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-13 18:43:02 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-05-18 11:02:32 +0200 |
commit | 7184da0fa364049424f626f55f7c2bc0a7d22929 (patch) | |
tree | 728419c8fd482a789d996b4a29f9cbff58974999 /src/utils.c | |
parent | ca83e6569617aa19679844986ecb929d38fc7786 (diff) | |
download | calcurse-7184da0fa364049424f626f55f7c2bc0a7d22929.zip |
Rework scroll window implementation
This complete rewrite of the scroll window implementation decouples
scroll windows from every other window abstraction layer we use. Note
that this leads to some code duplication. The long-term purpose of this
rewrite, however, is to eventually make every panel use scroll windows.
This makes for a huge cleanup of the UI code.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index a1d410a..493a180 100644 --- a/src/utils.c +++ b/src/utils.c @@ -499,7 +499,7 @@ void draw_scrollbar(WINDOW * win, int y, int x, int length, int bar_top, int bar_bottom, unsigned hilt) { - mvwvline(win, bar_top, x, ACS_VLINE, bar_bottom - bar_top); + mvwvline(win, bar_top, x, ACS_VLINE, bar_bottom - bar_top + 1); if (hilt) custom_apply_attr(win, ATTR_HIGHEST); wattron(win, A_REVERSE); |