]> git.cworth.org Git - sup/blobdiff - lib/sup/buffer.rb
convert a couple of arrays to sets for labels
[sup] / lib / sup / buffer.rb
index 3bd3fe8e96a1563ff3ae4fa748b80203a1320cb8..2f2dbdaf2f5f3894a4b60728486574c4ce325769 100644 (file)
@@ -484,7 +484,7 @@ EOS
   ## returns an array of labels
   def ask_for_labels domain, question, default_labels, forbidden_labels=[]
     default_labels = default_labels - forbidden_labels - LabelManager::RESERVED_LABELS
-    default = default_labels.join(" ")
+    default = default_labels.to_a.join(" ")
     default += " " unless default.empty?
 
     # here I would prefer to give more control and allow all_labels instead of