mirror of https://github.com/WerWolv/ImHex.git
ui: Fixed hex editor highlighting sometimes having gaps
This commit is contained in:
parent
cb9458dab4
commit
16eb7b3dbd
|
@ -863,7 +863,8 @@ namespace hex::plugin::builtin {
|
|||
|
||||
if (isColumnSeparatorColumn(x + 1, columnCount)) {
|
||||
auto separatorAddress = x + y * columnCount;
|
||||
if ((this->isSelectionValid() && this->getSelection().overlaps({ separatorAddress, 1 }) && this->getSelection().getEndAddress() != separatorAddress) || cellColors[x] == cellColors[x + 1])
|
||||
auto [nextForegroundColor, nextBackgroundColor] = cellColors[x + 1];
|
||||
if ((this->isSelectionValid() && this->getSelection().overlaps({ separatorAddress, 1 }) && this->getSelection().getEndAddress() != separatorAddress) || backgroundColor == nextBackgroundColor)
|
||||
cellSize.x += SeparatorColumWidth + 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue