From: David Lawrence Ramsey Date: Thu, 26 Sep 2002 22:49:56 +0000 (+0000) Subject: make the spacing fix use isspace(); it works the same way and takes up X-Git-Tag: v1.1.11~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7c4222ca907042273a383c542dc3b679098b87a9;p=nano.git make the spacing fix use isspace(); it works the same way and takes up less space in the binary git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1284 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/nano.c b/nano.c index fe7b767b..c68ae8aa 100644 --- a/nano.c +++ b/nano.c @@ -1512,7 +1512,7 @@ int do_wrap(filestruct *inptr) * between after_break and wrap_line. If the line already ends * in a tab or a space, we don't add a space and decrement * totsize to account for that. */ - if (newline[strlen(newline) - 1] != '\t' && newline[strlen(newline) - 1] != ' ') + if (!isspace(newline[strlen(newline) - 1])) strcat(newline, " "); else totsize--;