]> granicus.if.org Git - neomutt/commitdiff
notmuch: fix toggle labels
authorRichard Russon <rich@flatcap.org>
Tue, 24 Jan 2017 18:58:38 +0000 (18:58 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 24 Jan 2017 18:58:42 +0000 (18:58 +0000)
Fix the comparison of labels when toggling.

Thanks to Pietro Cerutti (@gahr) for spotting this.

mutt_notmuch.c

index e66d380ea62e0c83540db8492f9b9616c1831889..5cba5428f5fa4cbff85df92ebedf51fe23a6f7d4 100644 (file)
@@ -1330,7 +1330,7 @@ static bool nm_message_has_tag(notmuch_message_t *msg, char *tag)
        notmuch_tags_move_to_next(tags))
   {
     possible_match_tag = notmuch_tags_get(tags);
-    if (mutt_strncmp(possible_match_tag, tag, mutt_strlen(tag)) == 0)
+    if (mutt_strcmp(possible_match_tag, tag) == 0)
     {
       return true;
     }