]> git.cworth.org Git - notmuch/commitdiff
vim: fix count_threads variable check
authorFelipe Contreras <felipe.contreras@gmail.com>
Thu, 1 May 2014 22:57:52 +0000 (17:57 -0500)
committerDavid Bremner <david@tethera.net>
Fri, 2 May 2014 20:59:38 +0000 (05:59 +0900)
It never really worked; in Ruby only 'nil' and 'false' evaluate to
false, therefore the statement '0 : true ? false' returns true, so it
doesn't matter if notmuch_folders_count_threads = 0, count_threads would
be true.

We need to check specifically if the value is 1 or 0.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

No differences found