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 D470E138A1E for ; Thu, 14 Feb 2013 08:35:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 519E421C024; Thu, 14 Feb 2013 08:35:07 +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 B99C821C01F 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 BE4DD33E5AA 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 5B138E4089 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: <1360826933.009dbf3d4103818ac3282a71eec8c1474b03185a.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: 009dbf3d4103818ac3282a71eec8c1474b03185a 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: afdcdc8c-0cdb-4091-8c9b-00719d66f4a3 X-Archives-Hash: 753f25c2be256b72265cb5b401542407 commit: 009dbf3d4103818ac3282a71eec8c1474b03185a Author: Sven Eden gmx de> AuthorDate: Thu Feb 14 07:28:53 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Thu Feb 14 07:28:53 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=009dbf3d Fixed the ordering of the filter state in the status line to have the same ordering as the function keys. --- ufed-curses.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ufed-curses.c b/ufed-curses.c index 066a00f..27de1db 100644 --- a/ufed-curses.c +++ b/ufed-curses.c @@ -298,14 +298,14 @@ void drawStatus(bool withSep) mvwaddch (w, 0, minwidth + 7, ACS_VLINE); // After scope // Use the unused right side to show the filter status - sprintf(buf, "%*s%-6s / %-6s / %-13s] ", + sprintf(buf, "%*s%-6s / %-13s / %-6s] ", max(2, iWidth - 40 - minwidth), " [", - eMask_masked == e_mask ? "masked" : - eMask_unmasked == e_mask ? "normal" : "all", eScope_global == e_scope ? "global" : eScope_local == e_scope ? "local" : "all", eState_installed == e_state ? "installed" : - eState_notinstalled == e_state ? "not installed" : "all"); + eState_notinstalled == e_state ? "not installed" : "all", + eMask_masked == e_mask ? "masked" : + eMask_unmasked == e_mask ? "normal" : "all"); waddstr(w, buf); }