static int lastFirst = 0;
static int lastLast = 0;
static int lastCurrent = -1;
+static int lastGames;
static char lastLastMove[ MOVE_LEN ];
currFirst == lastFirst &&
currLast == lastLast &&
currCurrent >= 0 &&
- TRUE )
+ lastGames == storedGames )
{
result = TRUE;
lastLast == (currLast-1) &&
lastCurrent == (currCurrent-1) &&
currCurrent == (currLast-1) &&
- TRUE )
+ lastGames == storedGames )
{
result = TRUE;
}
{
int caretPos;
- DoHighlight( lastCurrent, FALSE );
- DoHighlight( currCurrent, TRUE );
+ if(lastCurrent <= currLast) DoHighlight( lastCurrent, FALSE );
lastFirst = currFirst;
lastLast = currLast;
lastCurrent = currCurrent;
+ lastGames = storedGames;
lastLastMove[0] = '\0';
if( lastLast > 0 ) {
}
ScrollToCurrent(caretPos);
+ DoHighlight( currCurrent, TRUE ); // [HGM] moved last, because in X some scrolling methods spoil highlighting
}
// back-end. Must be called as double-click call-back on move-history text edit