commit 4a32776f523039cdcbb6165d58e24bd9753b256b
parent d19eda45643dff558324c6c2f34aa0148f9d65d0
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Mon, 12 Oct 2009 06:40:36 -0700
increase numbers in contact-list-mode
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