mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-19 11:27:34 +00:00
(flyspell-check-pre-word-p): Make sure flyspell-pre-point is valid to
avoid signalling an error in post-command-hook.
This commit is contained in:
parent
586dde8097
commit
6797fabd2d
1 changed files with 3 additions and 0 deletions
|
|
@ -744,6 +744,9 @@ before the current command."
|
|||
(eq flyspell-previous-command this-command)))
|
||||
(or (= (current-column) 0)
|
||||
(= (current-column) flyspell-pre-column)
|
||||
;; If other post-command-hooks change the buffer,
|
||||
;; flyspell-pre-point can lie past eob (bug#468).
|
||||
(null (char-after flyspell-pre-point))
|
||||
(eq (char-syntax (char-after flyspell-pre-point)) ?w)))
|
||||
nil)
|
||||
((not (eq (current-buffer) flyspell-pre-buffer))
|
||||
|
|
|
|||
Loading…
Reference in a new issue