X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=history.c;fp=history.c;h=62268898006d2c8e4f4e78a98970d9ec24bf8a51;hb=f81b07c4e3bcbc2260a348beb8c48df27faa1d81;hp=503f6a0c69126f3a3d5b97dc877b5c43e6899a56;hpb=2c2c75c017b5d8c3ce7f6b06e4b5fc3a5dc92fde;p=xboard.git diff --git a/history.c b/history.c index 503f6a0..6226889 100644 --- a/history.c +++ b/history.c @@ -175,7 +175,6 @@ void MemoContentUpdated() int caretPos; if(lastCurrent <= currLast) DoHighlight( lastCurrent, FALSE ); - DoHighlight( currCurrent, TRUE ); lastFirst = currFirst; lastLast = currLast; @@ -195,6 +194,7 @@ void MemoContentUpdated() } 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