diff options
author | 2013-02-14 08:20:29 +0100 | |
---|---|---|
committer | 2013-02-14 08:20:29 +0100 | |
commit | c8378845701c32ec16b4695f62de9f07ecb06abc (patch) | |
tree | df0495c8756c137012254995ff2240fe398e2e1f | |
parent | Changed the drawing of the key help to look more like buttons. Even if ncurse... (diff) | |
download | ufed-c8378845701c32ec16b4695f62de9f07ecb06abc.tar.gz ufed-c8378845701c32ec16b4695f62de9f07ecb06abc.tar.bz2 ufed-c8378845701c32ec16b4695f62de9f07ecb06abc.zip |
Fixed a bug that rendered upwards scrolling impossible if the list of descriptions of a flag is longer than the available number of displayable lines.
-rw-r--r-- | ufed-curses.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ufed-curses.c b/ufed-curses.c index 78427ac..066a00f 100644 --- a/ufed-curses.c +++ b/ufed-curses.c @@ -182,7 +182,9 @@ void drawFlags() { * strong limiting filter (like "masked") has just been turned * off. */ - int line = min(lHeight - getFlagHeight(flag), flag->listline - topline); + int line = flag->listline - topline; + if (line > lHeight) + line = lHeight - getFlagHeight(flag); /* move to the top of the displayed list */ while ((flag != flags) && (line > 0)) { |