From d46e9fccf705b16b4d690e06ed0069b98c254b2b Mon Sep 17 00:00:00 2001
From: Adam Rogoyski <rogoyski@cs.utexas.edu>
Date: Tue, 20 Jun 2000 00:13:24 +0000
Subject: [PATCH] - 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
---
 nano.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nano.c b/nano.c
index bee1bbca..b88c7927 100644
--- 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;
-- 
GitLab