From: Chris Allegretta Date: Wed, 14 Apr 2010 03:14:40 +0000 (+0000) Subject: 2010-04-09 Chris Allegretta X-Git-Tag: v2.2.4~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=181c4a999b3e7e1212a4845808faac3a82647889;p=nano.git 2010-04-09 Chris Allegretta * text.c (do_alt_speller): Skip invoking the alt speller if the file size is 0 bytes. Fixes Savannah bug 29393 reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4499 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 29d56177..03b19c06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-04-09 Chris Allegretta + * text.c (do_alt_speller): Skip invoking the alt speller if the file size + is 0 bytes. Fixes Savannah bug 29393 reported by Mike Frysinger. + 2010-04-13 Felipe Bugno * doc/syntax/cmake.nanorc: Added cmake syntax highlighting file. diff --git a/src/text.c b/src/text.c index 38b9338c..1536fb4e 100644 --- a/src/text.c +++ b/src/text.c @@ -2752,6 +2752,11 @@ const char *do_alt_speller(char *tempfile_name) } #endif + if (openfile->totsize == 0) { + statusbar(_("Finished checking spelling")); + return NULL; + } + endwin(); /* Set up an argument list to pass execvp(). */