ref: b3da737010bec853091603c89d9f73755824e3a2
parent: 579fa84ebf4555f08b9045665099eb78a0f79851
author: cancel <cancel@cancel.fm>
date: Sun Jan 26 17:23:53 EST 2020
Cleanup
--- a/tui_main.c
+++ b/tui_main.c
@@ -1852,11 +1852,10 @@
case Ged_input_cmd_undo:
if (undo_history_count(&a->undo_hist) == 0)
break;
- if (a->is_playing) {
+ if (a->is_playing)
undo_history_apply(&a->undo_hist, &a->field, &a->tick_num);
- } else {
+ else
undo_history_pop(&a->undo_hist, &a->field, &a->tick_num);
- }
ged_cursor_confine(&a->ged_cursor, a->field.height, a->field.width);
ged_update_internal_geometry(a);
ged_make_cursor_visible(a);