nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d46e9fccf705b16b4d690e06ed0069b98c254b2b
parent ee39d57e8c3c87ce268caad24b6390129c4e4242
Author: Adam Rogoyski <rogoyski@cs.utexas.edu>
Date:   Tue, 20 Jun 2000 00:13:24 +0000

- 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

Diffstat:
Mnano.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nano.c b/nano.c @@ -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;