next-line-or-history-element

next-line-or-history-element is an interactive compiled Lisp function in `simple.el'.


(next-line-or-history-element &optional ARG)

Move cursor vertically down ARG lines, or to the next history element.
When point moves over the bottom line of multi-line minibuffer, puts ARGth
next element of the minibuffer history in the minibuffer.