Make flyspell-check-word-p work better with delete-selection-mode
* lisp/textmodes/flyspell.el (flyspell-check-word-p): Deactivate the region immediately (bug#53773).
This commit is contained in:
parent
c17f1a2e89
commit
118a911159
1 changed files with 3 additions and 0 deletions
|
@ -854,6 +854,9 @@ Mostly we check word delimiters."
|
|||
((get this-command 'flyspell-deplacement)
|
||||
(not (eq flyspell-previous-command this-command)))
|
||||
((get this-command 'flyspell-delayed)
|
||||
;; In case we're using `delete-selection-mode', make the
|
||||
;; region be updated immediately.
|
||||
(deactivate-mark)
|
||||
;; The current command is not delayed, that
|
||||
;; is that we must check the word now.
|
||||
(and (not unread-command-events)
|
||||
|
|
Loading…
Add table
Reference in a new issue