From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5E69C138A1E for ; Thu, 14 Feb 2013 08:35:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D442F21C035; Thu, 14 Feb 2013 08:35:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72F4421C01F for ; Thu, 14 Feb 2013 08:35:06 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 772F733E568 for ; Thu, 14 Feb 2013 08:35:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 08308E4073 for ; Thu, 14 Feb 2013 08:35:04 +0000 (UTC) From: "Sven Eden" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" Message-ID: <1360826429.c8378845701c32ec16b4695f62de9f07ecb06abc.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: ufed-curses.c X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: c8378845701c32ec16b4695f62de9f07ecb06abc X-VCS-Branch: master Date: Thu, 14 Feb 2013 08:35:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 04f72fa9-3e66-4666-9b37-8d00212fec97 X-Archives-Hash: 3f46c41c8e7e7052e3e1f3f1652dea44 commit: c8378845701c32ec16b4695f62de9f07ecb06abc Author: Sven Eden gmx de> AuthorDate: Thu Feb 14 07:20:29 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Thu Feb 14 07:20:29 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=c8378845 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. --- 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)) {