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

David Riebenbauer davrieb at liegesta.at
Fri Oct 21 11:16:21 PDT 2011


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



More information about the notmuch mailing list