+2014-06-17 Benno Schulenberg <bensberg@justemail.net>
+ * src/text.c (do_undo, do_redo): Remove obsolete boolean variable.
+
2014-06-16 David Lawrence Ramsey <pooka109@gmail.com>
* src/nano.c (do_exit): Display the message "No file name" on the
statusbar for two seconds when --tempfile was given and the current
/* 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;
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();
/* 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;
break;
}
- if (gotolinecolumn)
- do_gotolinecolumn(u->lineno, u->begin, FALSE, FALSE, FALSE, TRUE);
statusbar(_("Redid action (%s)"), undidmsg);
openfile->current_undo = u;