From: Rich Lane Date: Sun, 23 Aug 2009 18:46:10 +0000 (-0700) Subject: preemptively load messages when scrolling X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d50ad629bc9321980abeaeeebf17a935c300a7b1;p=sup preemptively load messages when scrolling --- 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