lib/tty/reader/history.rb
def next
        return if size.zero?

        if @index == size - 1
          @index = 0 if @cycle
        else
          @index += 1
        end
      end
# Move the pointer to the next line in the history
#
# @api public
Move the pointer to the next line in the history
Move the pointer to the next line in the history
def next
        return if size.zero?
        if @index == size - 1
          @index = 0 if @cycle
        else
          @index += 1
        end
      end
def next return if size . zero? if @index == size - 1 @index = 0 if @cycle else @index += 1 end end
Move the pointer to the next line in the history
Move the pointer to the next line in the history
api
None