Commit ae22fe03 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Deleting two redundant assignments.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 4 deletions
+2 -4
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* src/files.c (do_insertfile): Mark the buffer as mofified only when * src/files.c (do_insertfile): Mark the buffer as mofified only when
actually something was inserted. This fixes Savannah bug #45409. actually something was inserted. This fixes Savannah bug #45409.
* src/files.c (do_insertfile): Rename two variables for clarity. * 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> 2015-11-30 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (redo_cut, update_undo): When cutting reaches the EOF, * src/text.c (redo_cut, update_undo): When cutting reaches the EOF,
......
...@@ -446,8 +446,7 @@ void redo_cut(undo *u) ...@@ -446,8 +446,7 @@ void redo_cut(undo *u)
return; return;
filestruct *oldcutbuffer = cutbuffer, *oldcutbottom = cutbottom; filestruct *oldcutbuffer = cutbuffer, *oldcutbottom = cutbottom;
cutbuffer = NULL; cutbuffer = cutbottom = NULL;
cutbottom = NULL;
goto_line_posx(u->lineno, u->begin); goto_line_posx(u->lineno, u->begin);
...@@ -459,8 +458,6 @@ void redo_cut(undo *u) ...@@ -459,8 +458,6 @@ void redo_cut(undo *u)
openfile->mark_set = FALSE; openfile->mark_set = FALSE;
openfile->mark_begin = NULL; openfile->mark_begin = NULL;
openfile->mark_begin_x = 0;
edit_refresh_needed = TRUE;
if (cutbuffer != NULL) if (cutbuffer != NULL)
free_filestruct(cutbuffer); free_filestruct(cutbuffer);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment