X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.c;h=4e009603c6d60d086729c0136a800a20eaafa436;hb=78b46cdffd8cd0896c6d3a8815d6b651217be910;hp=ac1103e8ed4c5efc078b919a63435fcec32b71ca;hpb=ebd7f78161504e46896f7d96bb41e29714b2fd53;p=xboard.git diff --git a/engineoutput.c b/engineoutput.c index ac1103e..4e00960 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -222,7 +222,7 @@ SetProgramStats (FrontEndProgramStats * stats) // now directly called by back-en clearMemo = TRUE; } - if( lastForwardMostMove[which] != forwardMostMove ) { + if( lastForwardMostMove[which] != forwardMostMove && endPV < 0) { clearMemo = TRUE; } @@ -257,7 +257,7 @@ SetProgramStats (FrontEndProgramStats * stats) // now directly called by back-en /* Update */ lastDepth[which] = depth == 1 && ed.nodes == 0 ? 0 : depth; // [HGM] info-line kudge - lastForwardMostMove[which] = forwardMostMove; + if(endPV < 0) lastForwardMostMove[which] = forwardMostMove; // not during PV walk! UpdateControls( &ed ); } @@ -703,7 +703,7 @@ OutputKibitz (int window, char *text) } opponentKibitzes = TRUE; // this causes split window DisplayMode in ICS modes. VerifyDisplayMode(); - strncpy(text+strlen(text)-1, "\r\n",sizeof(text+strlen(text)-1)); // to not lose line breaks on copying + strncpy(text+strlen(text)-1, "\r\n", 4); // to not lose line breaks on copying if(gameMode == IcsObserving) { DoSetWindowText(0, nLabel, gameInfo.white); SetIcon( 0, nColorIcon, nColorWhite);