]> git.wh0rd.org Git - nano.git/commitdiff
Back out that change I wasn't commiting just yet *ugh*
authorChris Allegretta <chrisa@asty.org>
Wed, 24 Oct 2001 17:38:41 +0000 (17:38 +0000)
committerChris Allegretta <chrisa@asty.org>
Wed, 24 Oct 2001 17:38:41 +0000 (17:38 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@882 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

cut.c

diff --git a/cut.c b/cut.c
index 6a05aca2cd6b0181117d069564f65c54e34e6672..08a2fa85d950c30682201ba733267b2807150626 100644 (file)
--- a/cut.c
+++ b/cut.c
@@ -385,12 +385,8 @@ int do_uncut_text(void)
            i = editbot->lineno;
 
            current = newend;
-           if (i < newend->lineno) {
+           if (i <= newend->lineno)
                edit_update(current, CENTER);
-           }
-           else {
-               edit_refresh();
-           }
        }
 
        /* If marked cut == 2, that means that we're doing a cut to end
@@ -448,12 +444,8 @@ int do_uncut_text(void)
 
     i = editbot->lineno;
     renumber(newbuf);
-    if (i < newend->lineno) {
+    if (i < newend->lineno)
        edit_update(fileptr, CENTER);
-    }
-    else {
-       edit_refresh();
-    }
 
     dump_buffer_reverse(fileptr);