Commit 1f37c451 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

When redoing a text add, actually copy the beginning of the line back!


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4286 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 91a1862e
Showing with 1 addition and 0 deletions
+1 -0
......@@ -501,6 +501,7 @@ void do_redo(void)
undidmsg = _("text add");
len = strlen(f->data) + strlen(u->strdata) + 1;
data = charalloc(len);
strncpy(data, f->data, u->begin);
strcpy(&data[u->begin], u->strdata);
strcpy(&data[u->begin + strlen(u->strdata)], &f->data[u->begin]);
free(f->data);
......
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