Browse Source

Cleanup

master
cancel 5 years ago
parent
commit
1841332922
  1. 4
      tui_main.c

4
tui_main.c

@ -1708,7 +1708,8 @@ typedef enum {
void ged_input_cmd(Ged *a, Ged_input_cmd ev) { void ged_input_cmd(Ged *a, Ged_input_cmd ev) {
switch (ev) { switch (ev) {
case Ged_input_cmd_undo: case Ged_input_cmd_undo:
if (undo_history_count(&a->undo_hist) > 0) { 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); undo_history_apply(&a->undo_hist, &a->field, &a->tick_num);
} else { } else {
@ -1719,7 +1720,6 @@ void ged_input_cmd(Ged *a, Ged_input_cmd ev) {
ged_make_cursor_visible(a); ged_make_cursor_visible(a);
a->needs_remarking = true; a->needs_remarking = true;
a->is_draw_dirty = true; a->is_draw_dirty = true;
}
break; break;
case Ged_input_cmd_toggle_append_mode: case Ged_input_cmd_toggle_append_mode:
if (a->input_mode == Ged_input_mode_append) { if (a->input_mode == Ged_input_mode_append) {

Loading…
Cancel
Save