Method: Textbringer::Window#scroll_up

Defined in:
lib/textbringer/window.rb

#scroll_upObject



513
514
515
516
517
518
519
520
521
# File 'lib/textbringer/window.rb', line 513

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