Method: Textbringer::Window#save_point
- Defined in:
- lib/textbringer/window.rb
#save_point ⇒ Object
282 283 284 285 286 287 288 |
# File 'lib/textbringer/window.rb', line 282 def save_point @buffer[:top_of_window] ||= @buffer.new_mark @buffer[:top_of_window].location = @top_of_window.location @buffer[:bottom_of_window] ||= @buffer.new_mark @buffer[:bottom_of_window].location = @bottom_of_window.location @buffer.mark_to_point(@point_mark) end |