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 912EE138620 for ; Wed, 23 Jan 2013 12:05:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB0C2E05FE; Wed, 23 Jan 2013 12:05:30 +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 3526DE05FE for ; Wed, 23 Jan 2013 12:05:30 +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 3823033DB53 for ; Wed, 23 Jan 2013 12:05:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 50B95E4089 for ; Wed, 23 Jan 2013 12:05:27 +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: <1358871702.d45d3cc0603ad17f576f6cb182b4a8d32c947a4a.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: ufed-curses-checklist.c X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: d45d3cc0603ad17f576f6cb182b4a8d32c947a4a X-VCS-Branch: master Date: Wed, 23 Jan 2013 12:05:27 +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: 5d3e72d4-a34b-400a-a05c-bf8c9745e3e1 X-Archives-Hash: 75c1d34aec09ac26f9e8320dd55294e3 commit: d45d3cc0603ad17f576f6cb182b4a8d32c947a4a Author: Sven Eden gmx de> AuthorDate: Tue Jan 22 16:21:42 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Tue Jan 22 16:21:42 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=d45d3cc0 Skipped description lines from flags reaching into the display must still be counted as used, or showitems() will restart the display with the next flag. --- ufed-curses-checklist.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c index ae2a3e3..1df84b3 100644 --- a/ufed-curses-checklist.c +++ b/ufed-curses-checklist.c @@ -326,8 +326,9 @@ static int drawflag(struct item *item, bool highlight) { */ if (line < 0) { if (-line < getItemHeight(&flag->item)) { - idx = -line; - line = 0; + idx = -line; + line = 0; + usedY = idx; } else // Otherwise this item is out of the display area return 0;