]> git.notmuchmail.org Git - sup/blobdiff - lib/sup/modes/thread-view-mode.rb
convert a couple of arrays to sets for labels
[sup] / lib / sup / modes / thread-view-mode.rb
index 737f6f1ff309a5bd87ebdeb1d213c77c88b86bc2..4f9c147f3a6746c0acaf5c75c34436a898a9b7cb 100644 (file)
@@ -253,7 +253,7 @@ EOS
     new_labels = BufferManager.ask_for_labels :label, "Labels for thread: ", @thread.labels
 
     return unless new_labels
-    @thread.labels = (reserved_labels + new_labels).uniq
+    @thread.labels = Set.new(reserved_labels) + new_labels
     new_labels.each { |l| LabelManager << l }
     update
     UpdateManager.relay self, :labeled, @thread.first