]> git.wh0rd.org Git - nano.git/commitdiff
Deleting two redundant assignments.
authorBenno Schulenberg <bensberg@justemail.net>
Tue, 1 Dec 2015 11:51:10 +0000 (11:51 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Tue, 1 Dec 2015 11:51:10 +0000 (11:51 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/text.c

index f5c484540b52a9a77a682785f58829e5f3bb1b3a..3d44b671688517ec61e0deb5af9efa43d3f5579c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
        * src/files.c (do_insertfile): Mark the buffer as mofified only when
        actually something was inserted.  This fixes Savannah bug #45409.
        * src/files.c (do_insertfile): Rename two variables for clarity.
+       * src/text.c (redo_cut): Delete two redundant assignments.
 
 2015-11-30  Benno Schulenberg  <bensberg@justemail.net>
        * src/text.c (redo_cut, update_undo): When cutting reaches the EOF,
index 2a2a51612ecd029ad0d93100cea4ec36e59e8312..ba6bc645dc128a556295998f4f8dd5c72dbc6fc8 100644 (file)
@@ -446,8 +446,7 @@ void redo_cut(undo *u)
        return;
 
     filestruct *oldcutbuffer = cutbuffer, *oldcutbottom = cutbottom;
-    cutbuffer = NULL;
-    cutbottom = NULL;
+    cutbuffer = cutbottom = NULL;
 
     goto_line_posx(u->lineno, u->begin);
 
@@ -459,8 +458,6 @@ void redo_cut(undo *u)
 
     openfile->mark_set = FALSE;
     openfile->mark_begin = NULL;
-    openfile->mark_begin_x = 0;
-    edit_refresh_needed = TRUE;
 
     if (cutbuffer != NULL)
        free_filestruct(cutbuffer);