From 38cb8fc328d6600b88af8fcc077b958928bc58ac Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 17 Jun 2014 15:37:34 +0000 Subject: [PATCH] Removing an obsolete boolean variable. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4975 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ src/text.c | 9 ++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74532c70..57911f57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-06-17 Benno Schulenberg + * src/text.c (do_undo, do_redo): Remove obsolete boolean variable. + 2014-06-16 David Lawrence Ramsey * src/nano.c (do_exit): Display the message "No file name" on the statusbar for two seconds when --tempfile was given and the current diff --git a/src/text.c b/src/text.c index 271ad2d2..404df9e6 100644 --- a/src/text.c +++ b/src/text.c @@ -435,7 +435,6 @@ void redo_cut(undo *u) /* Undo the last thing(s) we did. */ void do_undo(void) { - bool gotolinecolumn = FALSE; undo *u = openfile->current_undo; filestruct *t = 0; size_t len = 0; @@ -554,10 +553,9 @@ void do_undo(void) break; } - renumber(f); - if (gotolinecolumn) - do_gotolinecolumn(u->lineno, u->begin, FALSE, FALSE, FALSE, TRUE); statusbar(_("Undid action (%s)"), undidmsg); + + renumber(f); openfile->current_undo = openfile->current_undo->next; openfile->last_action = OTHER; set_modified(); @@ -566,7 +564,6 @@ void do_undo(void) /* Redo the last thing(s) we undid. */ void do_redo(void) { - bool gotolinecolumn = FALSE; undo *u = openfile->undotop; size_t len = 0; char *undidmsg, *data; @@ -673,8 +670,6 @@ void do_redo(void) break; } - if (gotolinecolumn) - do_gotolinecolumn(u->lineno, u->begin, FALSE, FALSE, FALSE, TRUE); statusbar(_("Redid action (%s)"), undidmsg); openfile->current_undo = u;