From 90b330bbc5ce2ebf35ce1429e0f021589219b8d9 Mon Sep 17 00:00:00 2001 From: Thomas Stenhaug Date: Mon, 14 Sep 2020 13:02:35 +0200 Subject: [PATCH] Fix `+spell/add-word` when using flyspell ``+spell/add-word`` expects `flyspell-get-word` to return as a string the current word. Instead, it returns a list of the form `( )`. --- modules/checkers/spell/autoload/+flyspell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/checkers/spell/autoload/+flyspell.el b/modules/checkers/spell/autoload/+flyspell.el index 97787d1a6..e555ebd92 100644 --- a/modules/checkers/spell/autoload/+flyspell.el +++ b/modules/checkers/spell/autoload/+flyspell.el @@ -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))