commit 0b8ea502ed8e7536661db066fe046f936a3473a2
parent c206cf1f0585a1c1e1cd4fb8627c2dd4881f5afc
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Mon, 12 Oct 2009 06:40:45 -0700
Merge branch 'master' into next
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/contact-list-mode.rb b/lib/sup/modes/contact-list-mode.rb
@@ -16,7 +16,7 @@ module CanAliasContacts
end
class ContactListMode < LineCursorMode
- LOAD_MORE_CONTACTS_NUM = 10
+ LOAD_MORE_CONTACTS_NUM = 100
register_keymap do |k|
k.add :load_more, "Load #{LOAD_MORE_CONTACTS_NUM} more contacts", 'M'
@@ -106,7 +106,7 @@ class ContactListMode < LineCursorMode
end
def load
- @num ||= buffer.content_height
+ @num ||= (buffer.content_height * 2)
@user_contacts = ContactManager.contacts_with_aliases
num = [@num - @user_contacts.length, 0].max
BufferManager.say("Loading #{num} contacts from index...") do