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 905811389C0 for ; Tue, 12 Feb 2013 09:01:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FBCB21C07C; Tue, 12 Feb 2013 09:01: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 C680521C07C for ; Tue, 12 Feb 2013 09:01:24 +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 78BE533E6AB for ; Tue, 12 Feb 2013 09:01:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C87B2E40A5 for ; Tue, 12 Feb 2013 09:01:19 +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: <1360653611.811741909642be4bf626caabc1823dbdd8c94d12.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: 811741909642be4bf626caabc1823dbdd8c94d12 X-VCS-Branch: master Date: Tue, 12 Feb 2013 09:01:19 +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: da5c9971-5e24-4103-b058-701457da4016 X-Archives-Hash: e86546940f86ec53f4d4c468895a449d commit: 811741909642be4bf626caabc1823dbdd8c94d12 Author: Sven Eden gmx de> AuthorDate: Tue Feb 12 07:20:11 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Tue Feb 12 07:20:11 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=81174190 Change the move of the current flag to 0 flags to skip when a filter is toggled. This way the list will no longer skip the last/first flag if a filter is toggled that leaves the current item on the first/last displayable flag. --- ufed-curses-checklist.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c index 227dc20..b5e3ee3 100644 --- a/ufed-curses-checklist.c +++ b/ufed-curses-checklist.c @@ -456,8 +456,8 @@ static int callback(sFlag** curr, int key) else e_mask = eMask_masked; if ( !isFlagLegal(*curr) - && !setNextItem(1, true) - && !setPrevItem(1, true) ) + && !setNextItem(0, true) + && !setPrevItem(0, true) ) resetDisplay(true); else draw(true); @@ -470,8 +470,8 @@ static int callback(sFlag** curr, int key) else e_scope = eScope_global; if ( !isFlagLegal(*curr) - && !setNextItem(1, true) - && !setPrevItem(1, true) ) + && !setNextItem(0, true) + && !setPrevItem(0, true) ) resetDisplay(true); else draw(true); @@ -483,8 +483,8 @@ static int callback(sFlag** curr, int key) else e_state = eState_installed; if ( !isFlagLegal(*curr) - && !setNextItem(1, true) - && !setPrevItem(1, true) ) + && !setNextItem(0, true) + && !setPrevItem(0, true) ) resetDisplay(true); else draw(true);