Method: Textbringer::Window#scroll_up

Defined in:
lib/textbringer/window.rb

#scroll_upObject



554
555
556
557
558
559
560
561
562
# File 'lib/textbringer/window.rb', line 554

def scroll_up
  if @bottom_of_window.location == @buffer.point_max
    raise EditorError, "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