OSDN Git Service

Fix issue #834: Incorrect comparison
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 21 Jun 2021 11:19:34 +0000 (20:19 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 21 Jun 2021 11:19:34 +0000 (20:19 +0900)
This bug occurs when enabling both the 'Ignore blank lines' option and the 'Completely unhighlight the ignored differences' option.

Src/DiffWrapper.cpp

index 8efdf6d..c141594 100644 (file)
@@ -972,7 +972,8 @@ CDiffWrapper::LoadWinMergeDiffsFromDiffUtilsScript(struct change * script, const
                                                op = OP_TRIVIAL;
                                }
 
-                               if (op == OP_TRIVIAL && m_options.m_bCompletelyBlankOutIgnoredDiffereneces)
+                               if (op == OP_TRIVIAL && m_options.m_bCompletelyBlankOutIgnoredDiffereneces &&
+                                       QtyLinesLeft == QtyLinesRight)
                                        op = OP_NONE;
                                if (op != OP_NONE)
                                        AddDiffRange(m_pDiffList, trans_a0-1, trans_b0-1, trans_a1-1, trans_b1-1, op);