nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 4d77e0adbbfc6c4dbc43cbf0a69cd6c132621034
parent 2b8a73348c295caac931842cf62fd4e44c31e597
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon, 25 Nov 2019 16:57:04 +0100

speller: prefer 'hunspell' over 'spell', because it can handle UTF-8

Also, 'hunspell' is sensitive to the 'LANG' environment variable,
so that spell checking will take place for the language that the
user is using, instead of always for English.  (This is a behavior
change, and some people may not like it, expecting the spell check
to occur always for English, but... we'll see.)

Diffstat:
Msrc/text.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2373,9 +2373,9 @@ const char *do_int_speller(const char *tempfile_name) close(spell_fd[0]); close(spell_fd[1]); - /* Now try to run 'spell', and if that fails, try running 'hunspell'. */ - execlp("spell", "spell", NULL); + /* Try to run 'hunspell'; if that fails, fall back to 'spell'. */ execlp("hunspell", "hunspell", "-l", NULL); + execlp("spell", "spell", NULL); /* Indicate failure when neither speller was found. */ exit(9);