commit b159605a5b0f2ad06fcb32128334cc2b6c02aa21
parent 801a8b51d1e7e9b6e977ad376d9e4c08adf65220
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 14 Mar 2005 00:38:36 +0000
add missing blank lines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2362 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -3103,9 +3103,11 @@ void do_justify(bool full_justify)
/* Break the line, and add the space back to where we broke
* it. */
null_at(¤t->data, break_pos);
+
current->data = charealloc(current->data, break_pos + 2);
current->data[break_pos] = ' ';
current->data[break_pos + 1] = '\0';
+
totsize++;
/* Go to the next line. */