From: wmorgan Date: Wed, 29 Nov 2006 07:07:31 +0000 (+0000) Subject: space-saving measures in thread-index-mode. two more characters! X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ee26ef991ab5489a5d400a9253f91a540f033104;p=sup space-saving measures in thread-index-mode. two more characters! git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@49 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 6bce14c..d0cad36 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -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 ? ' -' : " ")], diff --git a/lib/sup/util.rb b/lib/sup/util.rb index 60be36f..f1cab57 100644 --- a/lib/sup/util.rb +++ b/lib/sup/util.rb @@ -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