Method: Textbringer::Window#scroll_down

Defined in:
lib/textbringer/window.rb

#scroll_downObject



564
565
566
567
568
569
570
571
572
# File 'lib/textbringer/window.rb', line 564

def scroll_down
  if @top_of_window.location == @buffer.point_min
    raise EditorError, "Beginning of buffer"
  end
  @buffer.point_to_mark(@top_of_window)
  @buffer.next_line
  @buffer.beginning_of_line
  @top_of_window.location = 0
end