Function: ghostel-line-mode-history-next
ghostel-line-mode-history-next is an interactive and natively compiled
function defined in ghostel-line-mode.el.
Signature
(ghostel-line-mode-history-next)
Documentation
Replace the input with the next entry from history.
Key Bindings
ghostel-line-mode-map M-n
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel-line-mode-history-next ()
"Replace the input with the next entry from history."
(interactive)
(cond
((null ghostel--line-mode-history-index)
(ghostel--line-mode-replace-input ""))
((zerop ghostel--line-mode-history-index)
(setq ghostel--line-mode-history-index nil)
(ghostel--line-mode-replace-input ""))
(t
(setq ghostel--line-mode-history-index
(1- ghostel--line-mode-history-index))
(ghostel--line-mode-replace-input
(nth ghostel--line-mode-history-index ghostel--line-mode-history)))))