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.

This commit is contained in:
Jim Derry 2017-10-25 15:04:49 -04:00
parent 4b1c048ee5
commit fc3cba86a8

View file

@ -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 );