ui: Fixed hex editor highlighting sometimes having gaps

This commit is contained in:
WerWolv 2022-10-11 15:06:33 +02:00
parent cb9458dab4
commit 16eb7b3dbd
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}