From ae22fe03ebd67fc12b77109fe33048dd5b9387d9 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 1 Dec 2015 11:51:10 +0000 Subject: [PATCH] Deleting two redundant assignments. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/text.c | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f5c48454..3d44b671 100644 --- 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 * src/text.c (redo_cut, update_undo): When cutting reaches the EOF, diff --git a/src/text.c b/src/text.c index 2a2a5161..ba6bc645 100644 --- a/src/text.c +++ b/src/text.c @@ -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); -- 2.39.5