From: H.G. Muller Date: Tue, 27 Oct 2009 03:42:24 +0000 (-0700) Subject: removing empty lines from ICS play X-Git-Tag: v4.4.1~15 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=2f50821e4f038bbe440b4c23403147fb9c5e35f6;p=xboard.git removing empty lines from ICS play this patch causes removal of spurious prompts during ICS play also if the prompt is preceeded by a number of empty lines (as the board for the opponent move is on FICS). --- diff --git a/backend.c b/backend.c index f1d3eb4..9712e8f 100755 --- a/backend.c +++ b/backend.c @@ -3260,6 +3260,7 @@ read_from_ics(isr, closure, data, count, error) /* Usually suppress following prompt */ if (!(forwardMostMove == 0 && gameMode == IcsExamining)) { + while(looking_at(buf, &i, "\n")); // [HGM] skip empty lines if (looking_at(buf, &i, "*% ")) { savingComment = FALSE; }