add maybe_rootzip to other root obj hover

This commit is contained in:
silverweed 2025-02-13 16:53:07 +01:00
parent 5355feae19
commit 925abe8eca

View file

@ -1111,7 +1111,8 @@ struct Sec_Hover_Fn {
range("???", section.range.start - cur_field_off); range("???", section.range.start - cur_field_off);
}); });
} }
range("Payload", section.range.len - section.post_size); b8 zipped = maybe_rootzip();
range("Payload", section.range.len - section.post_size - ROOTZIP_RANGE_LEN * zipped);
}); });
} }
@ -1129,7 +1130,7 @@ struct Sec_Hover_Fn {
} }
}; };
// `off` is the absolute offset into `data`. // `off` is the offset into `data`.
internal internal
Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, const u8 *data, b8 display_grouped, b8 old_version) Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, const u8 *data, b8 display_grouped, b8 old_version)
{ {