Start insertion point at end of text edits in XB dialogs
[xboard.git] / backend.c
index 7b7df9c..bbc39be 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8119,6 +8119,8 @@ GameEnds(result, resultDetails, whosays)
              result, resultDetails ? resultDetails : "(null)", whosays);
     }
 
+    fromX = fromY = -1; // [HGM] abort any move the user is entering.
+
     if (appData.icsActive && (whosays == GE_ENGINE || whosays >= GE_ENGINE1)) {
        /* If we are playing on ICS, the server decides when the
           game is over, but the engine can offer to draw, claim