Commit d46e9fcc authored by Adam Rogoyski's avatar Adam Rogoyski
Browse files

- 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
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment