X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=b1e5e93fd2eeb6dd01a1643ffba9a6a92f08270a;hb=98d170abf0ab910767ea165d9cb94ece49ff3e08;hp=afb379b28517b86fc7f649917c8bc9b74f6829db;hpb=7235b5dac65cd2aef7dfffdb7b34337080d44335;p=xboard.git diff --git a/backend.c b/backend.c index afb379b..b1e5e93 100644 --- a/backend.c +++ b/backend.c @@ -16443,8 +16443,8 @@ PopInner(Boolean annotate) int i, j, nrMoves; char buf[8000], moveBuf[20]; - storedGames--; - ToNrEvent(savedFirst[storedGames]); // sets currentMove + ToNrEvent(savedFirst[storedGames-1]); // sets currentMove + storedGames--; // do this after ToNrEvent, to make sure HistorySet will refresh entire game after PopInner returns nrMoves = savedLast[storedGames] - currentMove; if(annotate) { int cnt = 10; @@ -16492,6 +16492,7 @@ PopTail(Boolean annotate) CommentPopDown(); // make sure no stale variation comments to the destroyed line can remain open PopInner(annotate); + HistorySet(parseList, backwardMostMove, forwardMostMove, currentMove-1); if(storedGames == 0) GreyRevert(TRUE); return TRUE;