Function: ghostel--line-mode-try-resume
ghostel--line-mode-try-resume is a natively compiled function defined
in ghostel-line-mode.el.
Signature
(ghostel--line-mode-try-resume)
Documentation
Re-enter line mode and restore the paused snapshot, if possible.
Called by ghostel--line-mode-post-redraw on a 1049/1047 exit.
If ghostel-input-start-point cannot locate a prompt
yet (the renderer has not painted the post-TUI buffer yet), the
paused snapshot is left in place so the next redraw can retry.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel--line-mode-try-resume ()
"Re-enter line mode and restore the paused snapshot, if possible.
Called by `ghostel--line-mode-post-redraw' on a 1049/1047 exit.
If `ghostel-input-start-point' cannot locate a prompt
yet (the renderer has not painted the post-TUI buffer yet), the
paused snapshot is left in place so the next redraw can retry."
(when (ghostel-input-start-point)
(let ((snapshot ghostel--line-mode-paused))
(setq ghostel--line-mode-paused nil)
(when (ghostel--line-mode-enter)
(ghostel--line-mode-restore snapshot)
t))))