diff options
author | Franz Fellner <alpine.art.de@gmail.com> | 2015-01-22 21:16:47 +0100 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2015-01-23 18:18:54 +0100 |
commit | ce9f559b8642e0cc2eaffbf9dea9b3cbd46ee30d (patch) | |
tree | e063d5a9e225f7c0f316f2e74a4dc9fa3be81b94 /vim/notmuch.vim | |
parent | 9d4ff29ad86e24d0cc3500ca1d0ef2ab91cde222 (diff) |
VIM: Improve performance of folders_render
Simply use query.count_[messages,threads] instead of actually running
the query and using the count attribute of the result set.
Diffstat (limited to 'vim/notmuch.vim')
-rw-r--r-- | vim/notmuch.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/notmuch.vim b/vim/notmuch.vim index cb6695a8..ad8b7c80 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -644,7 +644,7 @@ ruby << EOF q.add_tag_exclude(t) } $searches << search - count = count_threads ? q.search_threads.count : q.search_messages.count + count = count_threads ? q.count_threads : q.count_messages b << "%9d %-20s (%s)" % [count, name, search] end end |