From b3da737010bec853091603c89d9f73755824e3a2 Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 26 Jan 2020 22:23:53 +0900 Subject: [PATCH] Cleanup --- tui_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tui_main.c b/tui_main.c index 6573c13..7ee1ae0 100644 --- a/tui_main.c +++ b/tui_main.c @@ -1852,11 +1852,10 @@ staticni void ged_input_cmd(Ged *a, Ged_input_cmd ev) { 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);