commit d50ad629bc9321980abeaeeebf17a935c300a7b1
parent 98a26cf7993745ba185f4b4e3852135188460ada
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date: Sun, 23 Aug 2009 11:46:10 -0700
preemptively load messages when scrolling
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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