sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 911033cc0566abdfc7671b52b3399cd6a9054e6b
parent ac82b2890971323ec4220aad429f1240745cfe80
Author: Eric Weikl <eric.weikl@gmx.net>
Date:   Sun, 21 Apr 2013 19:09:11 +0200

sup-config: call to_s() on user input

Highline seems to use its own string wrapper for data entered by the
user. When converting to yaml, the value is annotated with
'!str:HighLine::String', which leads to errors when starting sup or
sup-sync.

Fixes issue #28

Diffstat:
M bin/sup-config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/sup-config b/bin/sup-config
@@ -24,7 +24,7 @@ def axe q, default=nil
   else
     ask "#{q}: "
   end
-  ans.empty? ? default : ans
+  ans.empty? ? default : ans.to_s
 end
 
 def axe_yes q, default="n"