Fix crash on clearing new Move List window
[xboard.git] / history.c
index 6773133..503f6a0 100644 (file)
--- a/history.c
+++ b/history.c
@@ -174,7 +174,7 @@ void MemoContentUpdated()
 {
     int caretPos;
 
-    DoHighlight( lastCurrent, FALSE );
+    if(lastCurrent <= currLast) DoHighlight( lastCurrent, FALSE );
     DoHighlight( currCurrent, TRUE );
 
     lastFirst = currFirst;