]> git.cworth.org Git - sup/commitdiff
space-saving measures in thread-index-mode. two more characters!
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 29 Nov 2006 07:07:31 +0000 (07:07 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 29 Nov 2006 07:07:31 +0000 (07:07 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@49 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/thread-index-mode.rb
lib/sup/util.rb

index 6bce14c470ab7769394d3a06f76e35e3495e3535..d0cad369bd466a02969e174079826a319a8946b0 100644 (file)
@@ -359,7 +359,7 @@ protected
     [ 
       [:tagged_color, @tags.tagged?(t) ? ">" : " "],
       [:none, sprintf("%#{@date_width}s ", date)],
-      [base_color, sprintf("%-#{@from_width}s ", from)],
+      [base_color, sprintf("%-#{@from_width}s", from)],
       [:starred_color, starred ? "*" : " "],
       [:none, t.size == 1 ? " " * (@size_width + 2) : sprintf("(%#{@size_width}d)", t.size)],
       [:to_me_color, dp ? " >" : (p ? ' -' : "  ")],
index 60be36f8981f627a2babda418922b3b8304d89d5..f1cab57424fa8d3b30997ff6482a3438307c227f 100644 (file)
@@ -216,10 +216,10 @@ class Time
     end  
   end
 
-  TO_NICE_S_MAX_LEN = 11 # e.g. "Jul 31 2005"
+  TO_NICE_S_MAX_LEN = 9 # e.g. "Yest.10am"
   def to_nice_s from=Time.now
     if year != from.year
-      strftime "%b %e %Y"
+      strftime "%b %Y"
     elsif month != from.month
       strftime "%b %e"
     else