Method: Textbringer::Window#scroll_up

Defined in:
lib/textbringer/window.rb

#scroll_upObject



529
530
531
532
533
534
535
536
537
# File 'lib/textbringer/window.rb', line 529

def scroll_up
  if @bottom_of_window.location == @buffer.point_max
    raise RangeError, "End of buffer"
  end
  @buffer.point_to_mark(@bottom_of_window)
  @buffer.previous_line
  @buffer.beginning_of_line
  @buffer.mark_to_point(@top_of_window)
end