Function: cider-repl--find-prompt

cider-repl--find-prompt is a byte-compiled function defined in cider-repl.el.

Signature

(cider-repl--find-prompt &optional BACKWARD)

Documentation

Find the next prompt.

If BACKWARD is non-nil look backward.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defun cider-repl--find-prompt (&optional backward)
  "Find the next prompt.
If BACKWARD is non-nil look backward."
  (let ((origin (point))
        (cider-repl-prompt-property 'field))
    (while (progn
             (cider-search-property-change cider-repl-prompt-property backward)
             (not (or (cider-end-of-proprange-p cider-repl-prompt-property) (bobp) (eobp)))))
    (unless (cider-end-of-proprange-p cider-repl-prompt-property)
      (goto-char origin))))