; Fix last change

* lisp/textmodes/flyspell.el (flyspell-generic-progmode-verify):
Fix capitalization and whitespace of last change.
This commit is contained in:
Eli Zaretskii
2026-03-14 12:46:19 +02:00
parent 87d13146b2
commit 17aa3a7e13

View File

@@ -406,10 +406,10 @@ like <img alt=\"Some thing.\">."
"Used for `flyspell-generic-check-word-predicate' in programming modes."
(cl-flet ((has-prog-face (pos) (memq (get-text-property pos 'face)
flyspell-prog-text-faces)))
;; point might be in front of, inside or behind the misspelled word
(or (has-prog-face (point)) ;check char after point
;; Point might be in front of, inside, or behind the misspelled word
(or (has-prog-face (point)) ; check char after point
(and (not (eql (point) (point-min)))
(has-prog-face (1- (point))))))) ;check char before point
(has-prog-face (1- (point))))))) ; check char before point
;;;###autoload
(defun flyspell-prog-mode ()