diff --git a/src/hover.cpp b/src/hover.cpp index 7e47cdc..d0c6982 100644 --- a/src/hover.cpp +++ b/src/hover.cpp @@ -1111,7 +1111,8 @@ struct Sec_Hover_Fn { 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 Sec_Hover_Info get_section_hover_info(Arena *arena, Section section, u64 off, const u8 *data, b8 display_grouped, b8 old_version) {