sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit e5a08986d613527c1f99ac7685ba7a8e79097db7
parent 78a196e489f39e5be22be9a6148fdd593b061e25
Author: Matthieu Rakotojaona <matthieu.rakotojaona@gmail.com>
Date:   Sun,  5 May 2013 17:02:20 +0200

Fix error when a source has no labels

Turn a nil object into [] before playing with it.

Diffstat:
M lib/sup/source.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/source.rb b/lib/sup/source.rb
@@ -160,7 +160,7 @@ module SerializeLabelsNicely
   end
 
   def after_unmarshal!
-    @labels = Set.new(@labels.map { |s| s.to_sym })
+    @labels = Set.new(@labels.to_a.map { |s| s.to_sym })
   end
 end