From 3194b54d02a2e68ca8446768f881318b8c01bbba Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Wed, 18 Sep 2013 22:13:43 -0400 Subject: [PATCH] Don't update the board to move history after delete if in edit mode. --- src/cboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cboard.c b/src/cboard.c index df7abeb..04f3862 100644 --- a/src/cboard.c +++ b/src/cboard.c @@ -1947,7 +1947,6 @@ static void delete_game(int which) i--; which = -1; } - } if (which != -1) { @@ -3999,7 +3998,8 @@ void do_game_delete_finalize(int n) delete_game((!n) ? gindex : -1); d = gp->data; - pgn_board_update(gp, d->b, pgn_history_total(gp->hp)); + if (d->mode != MODE_EDIT) + pgn_board_update(gp, d->b, pgn_history_total(gp->hp)); } void do_game_delete_confirm(WIN *win) -- 2.11.4.GIT