From 939fdbd64dea3fcfe8bbf999da814de5f7e841f2 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 27 Jul 2000 13:03:31 +0000 Subject: [PATCH] Last minute touches on -k code git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@133 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- cut.c | 7 +++++-- po/nano.pot | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cut.c b/cut.c index dbe1b461..8950ccd9 100644 --- a/cut.c +++ b/cut.c @@ -366,15 +366,18 @@ int do_uncut_text(void) if (marked_cut == 2 && current_x != strlen(current->data)) { tmp = make_new_node(current); - tmp->data = nmalloc(strlen(¤t->data[current_x])); + tmp->data = nmalloc(strlen(¤t->data[current_x]) + 1); strcpy(tmp->data, ¤t->data[current_x]); tmp->next = current->next; current->next = tmp; tmp->prev = current; current->data[current_x] = 0; current->data = nrealloc(current->data, strlen(current->data) + 1); + current = current->next; + current_x = 0; + placewewant = 0; } - renumber(current); + renumber(current->prev); dump_buffer(fileage); dump_buffer(cutbuffer); set_modified(); diff --git a/po/nano.pot b/po/nano.pot index cf8547d7..cbab5b7c 100644 --- a/po/nano.pot +++ b/po/nano.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-07-27 01:11-0400\n" +"POT-Creation-Date: 2000-07-27 09:08-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- 2.39.5