Skip to content

Commit 1a4958f

Browse files
authored
Fix line filtering with the Moved attribute (#3681)
1 parent a5a4e99 commit 1a4958f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Src/MergeDoc.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,9 +695,6 @@ int CMergeDoc::Rescan(bool &bBinary, IDENTLEVEL &identical,
695695
// this operation does not change the modified flag
696696
PrimeTextBuffers();
697697

698-
// Hide identical lines if diff-context is not 'All'
699-
HideLines();
700-
701698
// Apply flags to lines that are trivial
702699
PrediffingInfo infoPrediffer;
703700
GetPrediffer(&infoPrediffer);
@@ -707,6 +704,9 @@ int CMergeDoc::Rescan(bool &bBinary, IDENTLEVEL &identical,
707704
// Apply flags to lines that moved, to differentiate from appeared/disappeared lines
708705
if (m_diffWrapper.GetDetectMovedBlocks())
709706
FlagMovedLines();
707+
708+
// Hide identical lines if diff-context is not 'All'
709+
HideLines();
710710

711711
// After PrimeTextBuffers() we know amount of real diffs
712712
// (m_nDiffs) and trivial diffs (m_nTrivialDiffs)

0 commit comments

Comments
 (0)