From 32d6537664a734207772608507882f5a682a2c0a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 1 Aug 2010 13:15:27 +0200 Subject: [PATCH] Fix regression in colorization of zippy-matched commands The patch by Daniel Mehrman from 4.2.pre8 was not properly merged, so that in XBoard no coloration would take place of ICS commands that were matched by zippy. (It was using &i as input pointer, rather than &backup. The XBoard-specific code now has been deleted completely, to remove a seemingly needless dependence on _WIN32_ of the back-end. Both WB and XB now use the XBoard method, to only match zippy commands when logged in. --- backend.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/backend.c b/backend.c index 661476c..1c25faa 100644 --- a/backend.c +++ b/backend.c @@ -2838,18 +2838,9 @@ read_from_ics(isr, closure, data, count, error) /* [DM] Backup address for color zippy lines */ backup = i; #if ZIPPY - #ifdef WIN32 if (loggedOn == TRUE) if (ZippyControl(buf, &backup) || ZippyConverse(buf, &backup) || (appData.zippyPlay && ZippyMatch(buf, &backup))); - #else - if (ZippyControl(buf, &i) || - ZippyConverse(buf, &i) || - (appData.zippyPlay && ZippyMatch(buf, &i))) { - loggedOn = TRUE; - if (!appData.colorize) continue; - } - #endif #endif } // [DM] 'else { ' deleted if ( -- 1.7.0.4