afrantzis / bless

Bless - Gtk# Hex Editor
GNU General Public License v2.0
218 stars 40 forks source link

Layouts shipped with bless miss highlight-on-selection feature #12

Open cweiske opened 5 years ago

cweiske commented 5 years ago

When copying the layout files from git-src/data/ into ~/.config/bless/layouts/, a feature is gone: By selecting one or several bytes, other locations of the same byte sequence is highlighted.

Only after removing the layouts from the config folder and restarting bless, the feature is back.

felixdoerre commented 2 years ago

Hi, something similar happened to me, and I've maybe got an explanation or a workaround for you (or anyone else who stumbles upon this): The "highlight-on-selection" feature seems to be provided by a plugin and not directly configured by the layouts. After copying the default layout into my ~/.config/bless I also noticed that the "highlight-on-selection" being gone.

So more concretely I imagine this being a bug in the "PatternMatchHighlight"-plugin. I can workaround this bug by switching the default layout to one of the custom layouts (and restarting bless). Then I get a working "PatternMatchHighligh" on a custom layout. Switching the layout to any layout breaks "highlight-on-selection".