1 Return-Path: <felipe.contreras@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id BBD08431FD7
\r
6 for <notmuch@notmuchmail.org>; Thu, 1 May 2014 16:08:40 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id AbAmrGz9y3iO for <notmuch@notmuchmail.org>;
\r
17 Thu, 1 May 2014 16:08:36 -0700 (PDT)
\r
18 Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com
\r
19 [209.85.214.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 4A7B2431FBD
\r
22 for <notmuch@notmuchmail.org>; Thu, 1 May 2014 16:08:36 -0700 (PDT)
\r
23 Received: by mail-ob0-f180.google.com with SMTP id va2so1668935obc.11
\r
24 for <notmuch@notmuchmail.org>; Thu, 01 May 2014 16:08:35 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=iGLg/Mjy/e/1/U/MfzcdoIZ6drffq3OqwXD8u+Yl0k8=;
\r
28 b=OY5VxL8OqS3cCt5wlw05VM95sD7UPBDtRqE0IrlSMsIvp7aUp/EC4wd7C+Xcgn71TS
\r
29 4DSsXKPd1mPU/2AKEbs18T2eok1dZHRBMi0b6yCsYHlBD+DI7sQ1jGy1WvWJTWTUs48e
\r
30 sV8aEAKajZE9/39wCAt1lPg8hX9QrCY/RFv1XK+6yG1XhZ714cX6pcJPGoiUTKOa+AKB
\r
31 YTWDvRh4PLeCrpD2RFG5zeaHv9qfkNKuyxBR1dyvxB0ZRH4/QgZBr5B/Qc5nNhw4hJz0
\r
32 ql5Ff8O7D/VPge6i2H2WMJNH1wYZv7B+P+kogGzk2i4Q5pGmxoHvJbi9hCe+WGeRlQWD
\r
34 X-Received: by 10.60.135.106 with SMTP id pr10mr13605871oeb.15.1398985715914;
\r
35 Thu, 01 May 2014 16:08:35 -0700 (PDT)
\r
36 Received: from localhost (189-211-224-40.static.axtel.net. [189.211.224.40])
\r
37 by mx.google.com with ESMTPSA id sm4sm62277852obc.3.2014.05.01.16.08.33
\r
38 for <multiple recipients>
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
40 Thu, 01 May 2014 16:08:34 -0700 (PDT)
\r
41 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH v2 1/3] vim: fix count_threads variable check
\r
44 Date: Thu, 1 May 2014 17:57:52 -0500
\r
45 Message-Id: <1398985074-17646-2-git-send-email-felipe.contreras@gmail.com>
\r
46 X-Mailer: git-send-email 1.9.2+fc1.19.g85b6256
\r
47 In-Reply-To: <1398985074-17646-1-git-send-email-felipe.contreras@gmail.com>
\r
48 References: <1398985074-17646-1-git-send-email-felipe.contreras@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Thu, 01 May 2014 23:08:41 -0000
\r
63 It never really worked; in Ruby only 'nil' and 'false' evaluate to
\r
64 false, therefore the statement '0 : true ? false' returns true, so it
\r
65 doesn't matter if notmuch_folders_count_threads = 0, count_threads would
\r
68 We need to check specifically if the value is 1 or 0.
\r
70 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
72 vim/notmuch.vim | 2 +-
\r
73 1 file changed, 1 insertion(+), 1 deletion(-)
\r
75 diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
76 index d7b310c..25a16e9 100644
\r
77 --- a/vim/notmuch.vim
\r
78 +++ b/vim/notmuch.vim
\r
79 @@ -633,7 +633,7 @@ ruby << EOF
\r
80 def folders_render()
\r
81 $curbuf.render do |b|
\r
82 folders = VIM::evaluate('g:notmuch_folders')
\r
83 - count_threads = VIM::evaluate('g:notmuch_folders_count_threads')
\r
84 + count_threads = VIM::evaluate('g:notmuch_folders_count_threads') == 1
\r
86 folders.each do |name, search|
\r
87 q = $curbuf.query(search)
\r
89 1.9.2+fc1.19.g85b6256
\r