]> git.cworth.org Git - sup/commitdiff
preemptively load messages when scrolling
authorRich Lane <rlane@club.cc.cmu.edu>
Sun, 23 Aug 2009 18:46:10 +0000 (11:46 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 3 Sep 2009 17:53:30 +0000 (13:53 -0400)
lib/sup/modes/line-cursor-mode.rb

index 246f2b5461c69a7a53241d237fa7a647d14371fc..0b1fd1de5418cf2c533590e4dfcc2836cb705551 100644 (file)
@@ -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