nano

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

commit 576502a5c5184c9b7416c77c2db2b032903080d2
parent ec9a11c76136f8968040e9d63f81f773826f46d6
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 24 Nov 2019 10:11:32 +0100

speller: when 'spell' is not found, try running 'hunspell -l' instead

This increases the chances that spell checking will work out of the box,
without any extra installing or configuration.

This addresses https://savannah.gnu.org/bugs/?57296.

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

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