Last minute touches on -k code

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@133 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2000-07-27 13:03:31 +00:00
parent 293849eb69
commit 939fdbd64d
2 changed files with 6 additions and 3 deletions

7
cut.c
View File

@ -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(&current->data[current_x]));
tmp->data = nmalloc(strlen(&current->data[current_x]) + 1);
strcpy(tmp->data, &current->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();

View File

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"