lib/sup/modes/line-cursor-mode.rb in sup-0.12.1 vs lib/sup/modes/line-cursor-mode.rb in sup-0.13.0
- old
+ new
@@ -76,11 +76,11 @@
page_up while line < topline
set_cursor_pos line
end
def search_start_line; @curpos end
-
+
def line_down # overwrite scrollmode
super
call_load_more_callbacks([topline + buffer.content_height - lines, 10].max) if topline + buffer.content_height > lines
set_cursor_pos topline if @curpos < topline
end
@@ -175,10 +175,10 @@
l = lines
@status = l > 0 ? "line #{@curpos + 1} of #{l}" : ""
end
def call_load_more_callbacks size
- @load_more_q.push size
+ @load_more_q.push size if $config[:load_more_threads_when_scrolling]
end
end
end