From e751f8f42da0f65754d559dbb747a5ec8311748c Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sat, 6 Jan 2007 01:00:24 +0000 Subject: [PATCH] bugfix to # of loaded entries git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@200 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- 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 index fe10a2c..e5c3c5e 100644 --- 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 -- 2.45.2