Add line_at_offset() method in the Buffer