Merge pull request #3938 from karvus/fix-spell-add-word-for-flyspell

Fix `+spell/add-word` when using flyspell
This commit is contained in:
Henrik Lissner 2020-10-04 17:05:29 -04:00 committed by GitHub
commit 38a5965704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ SCOPE can be `buffer' or `session' to exclude words only from the current buffer
or session. Otherwise, the addition is permanent."
(interactive
(list (progn (require 'flyspell)
(flyspell-get-word))
(car (flyspell-get-word)))
(cond ((equal current-prefix-arg '(16))
'session)
((equal current-prefix-arg '(4))