]> git.wh0rd.org Git - nano.git/commitdiff
Fixed getting locked into cutbuffer on cutting first line of file
authorChris Allegretta <chrisa@asty.org>
Sat, 5 Aug 2000 16:03:19 +0000 (16:03 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 5 Aug 2000 16:03:19 +0000 (16:03 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@166 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
cut.c
po/nano.pot

index 8f4ee9362fe8727bf7730a48e89097ebdedb45b0..afa06f539c3ae4bc37a98427e9296e0e0f677048 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
 CVS code
+- cut.c:
+  do_cut_text()
+       - Fixed getting locked into cutbuffer on cutting first line of file.
 - nano.c:
   main()
        - Changed tabsize long arg to actually accept an argument *sigh*.
diff --git a/cut.c b/cut.c
index f3a84998361e8bb9f6db5e29d24611dfd2fb89a3..366519197ad315edbf5df224006dfeb9a056a519 100644 (file)
--- a/cut.c
+++ b/cut.c
@@ -223,8 +223,8 @@ int do_cut_text(void)
            totsize--; /* get the newline */
            totlines--;
            fileptr->prev = NULL;
-           edit_update(fileage, CENTER);
            current = fileptr;
+           edit_update(fileage, CENTER);
        } else {
            add_to_cutbuffer(fileptr);
            fileage = make_new_node(NULL);
index 0817591447292b4b2bbe7ea002833409e42a8d60..bd1d26149f2e0626ee7a7472f7e79183f789afa3 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-08-04 11:48-0400\n"
+"POT-Creation-Date: 2000-08-05 12:07-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"