Function: evil-next-flyspell-error
evil-next-flyspell-error is an interactive and byte-compiled function
defined in evil-commands.el.
Signature
(evil-next-flyspell-error &optional COUNT)
Documentation
Go to the COUNT'th spelling mistake after point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-motion evil-next-flyspell-error (count)
"Go to the COUNT'th spelling mistake after point."
:jump t
(unless (bound-and-true-p flyspell-mode) (signal 'search-failed nil))
(let ((fwd (> (or count 1) 0)) (start (point)) (pos (point)) ov)
(dotimes (_ (abs (or count 1)))
(let ((limit (if fwd (point-max) (point-min))) wrappedp)
(when fwd (setq pos (save-excursion (goto-char pos)
(skip-syntax-forward "w") (point))))
(while (progn (if (if fwd (>= pos limit) (<= pos limit))
(if (or wrappedp (not evil-search-wrap))
(signal 'search-failed nil)
(setq wrappedp t
limit start
pos (if fwd (point-min)
(previous-overlay-change (point-max)))))
(setq pos (if fwd (next-overlay-change pos)
(previous-overlay-change pos))))
(not (setq ov (seq-find #'flyspell-overlay-p
(overlays-at pos))))))
(when wrappedp (let (message-log-max) (message "Search wrapped")))))
(goto-char (overlay-start ov))))