]> git.wh0rd.org Git - nano.git/commitdiff
- do_wrap() off by one current_x - 1 ==> current_x
authorAdam Rogoyski <rogoyski@cs.utexas.edu>
Tue, 20 Jun 2000 00:13:24 +0000 (00:13 +0000)
committerAdam Rogoyski <rogoyski@cs.utexas.edu>
Tue, 20 Jun 2000 00:13:24 +0000 (00:13 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@37 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

nano.c

diff --git a/nano.c b/nano.c
index bee1bbca8370826140333c1ab97549e56eda0c40..b88c7927a4425b5d8c6c0d55276a6003f830142a 100644 (file)
--- 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;