sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit e751f8f42da0f65754d559dbb747a5ec8311748c
parent 1e6b993875eba328e58cea71ddbc330e0f49596a
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sat,  6 Jan 2007 01:00:24 +0000

bugfix to # of loaded entries


git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@200 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/modes/contact-list-mode.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/sup/modes/contact-list-mode.rb b/lib/sup/modes/contact-list-mode.rb
@@ -100,8 +100,7 @@ protected
 
   def regen_text
     @user_contacts = ContactManager.contacts.invert
-    recent = Index.load_contacts AccountManager.user_emails,
-                                 :num => @num
+    recent = Index.load_contacts AccountManager.user_emails, :num => [@num - @user_contacts.length, 0].max
     
     @contacts = (@user_contacts.keys + recent.select { |p| !@user_contacts[p] }).sort_by { |p| p.sort_by_me + (p.name || "") + p.email }.remove_successive_dupes