[PATCH] notmuch.vim: fix application of tags when advancing

Subject: [PATCH] notmuch.vim: fix application of tags when advancing

Date: Fri, 21 Oct 2011 20:16:21 +0200

To: notmuch@notmuchmail.org

Cc:

From: David Riebenbauer


When advancing to the next thread, advance tags would be removed
instead of added.
---
 vim/plugin/notmuch.vim |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
index 21985c7..f0bc416 100644
--- a/vim/plugin/notmuch.vim
+++ b/vim/plugin/notmuch.vim
@@ -616,7 +616,7 @@ function! s:NM_show_advance_marking_read_and_archiving()
                         " do this last to hide the latency
                         let filter = <SID>NM_combine_tags('tag:', advance_tags, 'OR', '()')
                                  \ + ['AND', msg_top['id']]
-                        call map(advance_tags, '"-" . v:val')
+                        call map(advance_tags, '"+" . v:val')
                         call <SID>NM_tag(filter, advance_tags)
                 endif
                 return
-- 
1.7.2.5


Thread: