Value fix delta output format

Actually show delta
This commit is contained in:
Michael Davidsaver
2023-01-26 10:29:02 -08:00
parent a9699be7e8
commit 78f54455e6
3 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ struct FmtDelta {
void field(const std::string& prefix, const Value& val, bool verytop)
{
if(verytop && !val.isMarked())
if(verytop && !val.isMarked(false))
return;
strm<<indent{}<<prefix;
@@ -110,7 +110,7 @@ struct FmtDelta {
field(prefix, val, verytop);
if(val.type()==TypeCode::Struct) {
for(auto fld : val.iall()) {
for(auto fld : val.imarked()) {
std::string cprefix(prefix);
if(!verytop)
cprefix += '.';