- do_wrap() off by one current_x - 1 ==> current_x

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@37 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Adam Rogoyski 2000-06-20 00:13:24 +00:00
parent ee39d57e8c
commit d46e9fccf7
1 changed files with 1 additions and 1 deletions

2
nano.c
View File

@ -717,7 +717,7 @@ assert (strlenpt(inptr->data) >= fill);
else if (current_x <= last_word_end)
i = last_word_end - 1;
else
i = current_x - 1;
i = current_x;
inptr->data = nrealloc(inptr->data, i + 2);
inptr->data[i + 1] = 0;