From mboxrd@z Thu Jan 1 00:00:00 1970 From: rlane@club.cc.cmu.edu (Rich Lane) Date: Sun, 23 Aug 2009 11:46:10 -0700 Subject: [sup-talk] [PATCH 1/2] preemptively load messages when scrolling Message-ID: <1251053171-11450-1-git-send-email-rlane@club.cc.cmu.edu> --- lib/sup/modes/line-cursor-mode.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb index 246f2b5..0b1fd1d 100644 --- a/lib/sup/modes/line-cursor-mode.rb +++ b/lib/sup/modes/line-cursor-mode.rb @@ -77,7 +77,7 @@ protected end def cursor_down - call_load_more_callbacks buffer.content_height if @curpos == lines - 1 + call_load_more_callbacks buffer.content_height if @curpos >= lines - [buffer.content_height/2,1].max return false unless @curpos < lines - 1 if @curpos >= botline - 1 -- 1.6.4