nano

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

commit 1f37c4514d1839b3da23dda5f28153e7edfd28c0
parent 91a1862eed9a8102228bcc19a23aade0d8990616
Author: Chris Allegretta <chrisa@asty.org>
Date:   Fri,  1 Aug 2008 04:11:57 +0000

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

Diffstat:
Msrc/text.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

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