X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=ea13ca81e96c01156feeb68ebc1f5a87479c5ec8;hb=1f84be6944ee48b72a33cf064661fa1a2129b885;hp=8a63a43d6a28f7a37ac746bc7f048a3b7a486e1a;hpb=a9a9de13751f0b8a188d7d11957821e58c7aa03d;p=xboard.git diff --git a/backend.c b/backend.c index 8a63a43..ea13ca8 100644 --- a/backend.c +++ b/backend.c @@ -449,6 +449,7 @@ int adjudicateLossPlies = 6; char white_holding[64], black_holding[64]; TimeMark lastNodeCountTime; long lastNodeCount=0; +int shiftKey; // [HGM] set by mouse handler int have_sent_ICS_logon = 0; int sending_ICS_login = 0; @@ -6160,7 +6161,7 @@ FinishMove(moveType, fromX, fromY, toX, toY, promoChar) the previous line in Analysis Mode */ if ((gameMode == AnalyzeMode || gameMode == EditGame) && currentMove < forwardMostMove) { - if(appData.variations) PushTail(currentMove, forwardMostMove); // [HGM] vari: save tail of game + if(appData.variations && shiftKey) PushTail(currentMove, forwardMostMove); // [HGM] vari: save tail of game else forwardMostMove = currentMove; }