X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=history.c;h=62268898006d2c8e4f4e78a98970d9ec24bf8a51;hb=55d82733a8c6a6e29280bb6413fb2037cbcd381b;hp=109c9fb2ae67bd50a99bf3dce99d1a25fcd46397;hpb=0ea1b434ac6becf79c75d85ba27de5b89666a7c3;p=xboard.git diff --git a/history.c b/history.c index 109c9fb..6226889 100644 --- a/history.c +++ b/history.c @@ -28,7 +28,6 @@ #include #include -#include #include #include "common.h" @@ -175,8 +174,7 @@ void MemoContentUpdated() { int caretPos; - DoHighlight( lastCurrent, FALSE ); - DoHighlight( currCurrent, TRUE ); + if(lastCurrent <= currLast) DoHighlight( lastCurrent, FALSE ); lastFirst = currFirst; lastLast = currLast; @@ -196,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