mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
vim: fix count_threads variable check
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>
This commit is contained in:
parent
697d6b5a47
commit
2fee62fd1f
1 changed files with 1 additions and 1 deletions
|
@ -633,7 +633,7 @@ ruby << EOF
|
|||
def folders_render()
|
||||
$curbuf.render do |b|
|
||||
folders = VIM::evaluate('g:notmuch_folders')
|
||||
count_threads = VIM::evaluate('g:notmuch_folders_count_threads')
|
||||
count_threads = VIM::evaluate('g:notmuch_folders_count_threads') == 1
|
||||
$searches.clear
|
||||
folders.each do |name, search|
|
||||
q = $curbuf.query(search)
|
||||
|
|
Loading…
Reference in a new issue