From fc3cba86a826e39a5d94f0797a8c213c56d947d2 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Wed, 25 Oct 2017 15:04:49 -0400 Subject: [PATCH] I guess no one tried to use this before... it's been broken since the initial commit. We've been comparing the config value from a different option the whole time. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 2a40f15..5cdcaa8 100644 --- a/src/config.c +++ b/src/config.c @@ -1823,7 +1823,7 @@ Bool TY_(ConfigDiffThanDefault)( TidyDocImpl* doc ) { Bool diff = no; const TidyOptionImpl* option = option_defs + 1; - const TidyOptionValue* val = doc->config.value; + const TidyOptionValue* val = doc->config.value + 1; for ( /**/; !diff && option && option->name; ++option, ++val ) { diff = !OptionValueEqDefault( option, val );