Commit 7c4222ca authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
parent 43000929
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment