Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Highlighting Issue using static struct in array #2178

Open
1 task
PizzaKirby opened this issue Mar 21, 2025 · 0 comments
Open
1 task

[Bug] Highlighting Issue using static struct in array #2178

PizzaKirby opened this issue Mar 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@PizzaKirby
Copy link

PizzaKirby commented Mar 21, 2025

Operating System

Windows

What's the issue you encountered?

While working on a pattern I've come across an issue, where if I apply a static struct pattern using an array highlighting & hover tooltip seem to be off.

How can the issue be reproduced?

Using a pattern like this

struct Skill {
    s16 id;
    char name[4];
} [[static, name("Skill")]];

Skill skill0[2] @ $;
Skill skill_ @ $ [[hidden]]; // spacing
Skill skill1 @ $;

I get the correct results in the Pattern Data view, but hovering over the name part of skill0, it is not highlighting the whole structure, but all of name the two following bytes (hopefully visible in the image)
Image
When I hover over the same part of skill1 it highlights correctly, all of name and the 2 previous bytes.
Image

The hover tooltip for id seems to always be shown correctly, but the one for name is not.
Using the array:
Image
and standalone:
Image

All of this only happens if Skill is marked static.
I've run into issues with static recently, so correct me if I'm wrong, but Skill is as static as it gets in my book.

Here is a small piece of data for easier visibility and the minimal example of a broken pattern.
https://drive.proton.me/urls/PF8HYNZWAR#rmHvDI8Eh7mD
(hosted on proton drive, I don't think you can upload files in an issue directly)

ImHex Version

1.37.4

ImHex Build Type

  • Nightly or built from sources

Installation type

Scoop (github release)

Additional context?

No response

@PizzaKirby PizzaKirby added the bug Something isn't working label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant