sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 50a97b9d522f1ae449b6b48cd66bfddc33dab8e1
parent 62957d7bd278910530d6888aefd209201b7007e6
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Wed, 13 May 2009 13:53:00 -0700

Merge branch 'master' into next

Diffstat:
M lib/sup/label.rb | 2 +-
M lib/sup/util.rb | 5 -----
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/lib/sup/label.rb b/lib/sup/label.rb
@@ -43,7 +43,7 @@ class LabelManager
   ## reverse the label->string mapping, for convenience!
   def string_for l
     if RESERVED_LABELS.include? l
-      l.to_s.ucfirst
+      l.to_s.capitalize
     else
       l.to_s
     end
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -188,11 +188,6 @@ class String
     ret
   end
 
-  ## one of the few things i miss from perl
-  def ucfirst
-    self[0 .. 0].upcase + self[1 .. -1]
-  end
-
   ## a very complicated regex found on teh internets to split on
   ## commas, unless they occurr within double quotes.
   def split_on_commas