Skip to content

Commit

Permalink
FIx issue #1116: Colors -> Differences -> Word Difference : Text colo…
Browse files Browse the repository at this point in the history
…r ignored
  • Loading branch information
sdottaka committed Jan 6, 2022
1 parent fca5c4c commit 408ab0f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Src/MergeEditView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,19 +686,15 @@ std::vector<TEXTBLOCK> CMergeEditView::GetAdditionalTextBlocks (int nLineIndex)
blocks[j].m_nCharPos = begin[m_nThisPane];
if (lineInCurrentDiff)
{
if (m_cachedColors.clrSelDiffText != CLR_NONE)
blocks[j].m_nColorIndex = COLORINDEX_HIGHLIGHTTEXT1 | COLORINDEX_APPLYFORCE;
else
blocks[j].m_nColorIndex = COLORINDEX_NONE;
blocks[j].m_nColorIndex = COLORINDEX_APPLYFORCE |
((m_cachedColors.clrSelWordDiffText != CLR_NONE) ? COLORINDEX_HIGHLIGHTTEXT1 : COLORINDEX_NONE);
blocks[j].m_nBgColorIndex = COLORINDEX_APPLYFORCE |
(deleted ? COLORINDEX_HIGHLIGHTBKGND4 : COLORINDEX_HIGHLIGHTBKGND1);
}
else
{
if (m_cachedColors.clrDiffText != CLR_NONE)
blocks[j].m_nColorIndex = COLORINDEX_HIGHLIGHTTEXT2 | COLORINDEX_APPLYFORCE;
else
blocks[j].m_nColorIndex = COLORINDEX_NONE;
blocks[j].m_nColorIndex = COLORINDEX_APPLYFORCE |
((m_cachedColors.clrWordDiffText != CLR_NONE) ? COLORINDEX_HIGHLIGHTTEXT2 : COLORINDEX_NONE);
blocks[j].m_nBgColorIndex = COLORINDEX_APPLYFORCE |
(deleted ? COLORINDEX_HIGHLIGHTBKGND3 : COLORINDEX_HIGHLIGHTBKGND2);
}
Expand Down

0 comments on commit 408ab0f

Please sign in to comment.