- 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-d3aeb78583b8master
parent
ee39d57e8c
commit
d46e9fccf7
2
nano.c
2
nano.c
|
@ -717,7 +717,7 @@ assert (strlenpt(inptr->data) >= fill);
|
||||||
else if (current_x <= last_word_end)
|
else if (current_x <= last_word_end)
|
||||||
i = last_word_end - 1;
|
i = last_word_end - 1;
|
||||||
else
|
else
|
||||||
i = current_x - 1;
|
i = current_x;
|
||||||
|
|
||||||
inptr->data = nrealloc(inptr->data, i + 2);
|
inptr->data = nrealloc(inptr->data, i + 2);
|
||||||
inptr->data[i + 1] = 0;
|
inptr->data[i + 1] = 0;
|
||||||
|
|
Loading…
Reference in New Issue