Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 12E09429E26 for ; Fri, 21 Oct 2011 11:16:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id atBfNLK1Oa79 for ; Fri, 21 Oct 2011 11:16:23 -0700 (PDT) Received: from plum.liegesta.at (plum.liegesta.at [83.169.17.237]) by olra.theworths.org (Postfix) with ESMTP id 7AA61431FB6 for ; Fri, 21 Oct 2011 11:16:23 -0700 (PDT) Received: by plum.liegesta.at (Postfix, from userid 1000) id 3AF991AF8068; Fri, 21 Oct 2011 20:16:21 +0200 (CEST) Date: Fri, 21 Oct 2011 20:16:21 +0200 From: David Riebenbauer To: notmuch@notmuchmail.org Subject: [PATCH] notmuch.vim: fix application of tags when advancing Message-ID: <20111021181621.GA20117@liegesta.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 18:16:24 -0000 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 = NM_combine_tags('tag:', advance_tags, 'OR', '()') \ + ['AND', msg_top['id']] - call map(advance_tags, '"-" . v:val') + call map(advance_tags, '"+" . v:val') call NM_tag(filter, advance_tags) endif return -- 1.7.2.5