From dcb55122ea4e5c93aaf2c76b8deb421a4fba5dc6 Mon Sep 17 00:00:00 2001
From: H.G. Muller <h.g.muller@hccnet.nl>
Date: Tue, 26 Feb 2013 17:59:43 +0100
Subject: [PATCH] Fix of argument error

Oops. Pevious patch for skipping unknown multi-line arguments
was still buggy.
---
 args.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/args.h b/args.h
index 76b2452..8c52303 100644
--- a/args.h
+++ b/args.h
@@ -922,6 +922,7 @@ ParseArgs(GetFunc get, void *cl)
 	char endChar = (ch && ch != '\n' && (ch = get(cl)) == '{' ? '}' : '\n');
 	ExitArgError(_("Unrecognized argument %s"), argName, get != &FileGet); // [HGM] make unknown argument non-fatal
 	while (ch != endChar && ch != NULLCHAR) ch = get(cl); // but skip rest of line it is on (or until closing '}' )
+	if(ch == '}') ch = get(cl);
 	continue; // so that when it is in a settings file, it is the only setting that will be purged from it
       }
     } else if (ch == '@') {
-- 
1.7.0.4