Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Dec 24, 2024
1 parent 947de2a commit 14bc5a9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Src/DiffWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1335,8 +1335,10 @@ CDiffWrapper::LoadWinMergeDiffsFromDiffUtilsScript(struct change * script, const
last1 = first1 + thisob->inserted - 1;
translate_range (&file_data_ary[0], first0, last0, &trans_a0, &trans_b0);
translate_range (&file_data_ary[1], first1, last1, &trans_a1, &trans_b1);
const int qtyLinesLeft = (trans_b0 - trans_a0) + 1; //Determine quantity of lines in this block for left side
const int qtyLinesRight = (trans_b1 - trans_a1) + 1;//Determine quantity of lines in this block for right side
const int qtyLinesLeft = (trans_b0 - trans_a0) + 1
- ((!thisob->link && file_data_ary[0].missing_newline) ? 1 : 0); //Determine quantity of lines in this block for left side
const int qtyLinesRight = (trans_b1 - trans_a1) + 1
- ((!thisob->link && file_data_ary[1].missing_newline) ? 1 : 0); //Determine quantity of lines in this block for right side

if (op == OP_TRIVIAL && m_options.m_bCompletelyBlankOutIgnoredDiffereneces)
{
Expand All @@ -1360,8 +1362,10 @@ CDiffWrapper::LoadWinMergeDiffsFromDiffUtilsScript(struct change * script, const
{
if (thisob->trivial)
op = OP_TRIVIAL;
const int qtyLinesLeft = (trans_b0 - trans_a0) + 1; //Determine quantity of lines in this block for left side
const int qtyLinesRight = (trans_b1 - trans_a1) + 1;//Determine quantity of lines in this block for right side
const int qtyLinesLeft = (trans_b0 - trans_a0) + 1
- ((!thisob->link && file_data_ary[0].missing_newline) ? 1 : 0); //Determine quantity of lines in this block for left side
const int qtyLinesRight = (trans_b1 - trans_a1) + 1
- ((!thisob->link && file_data_ary[1].missing_newline) ? 1 : 0); //Determine quantity of lines in this block for right side
if (op == OP_TRIVIAL && m_options.m_bCompletelyBlankOutIgnoredDiffereneces)
{
if (qtyLinesLeft == qtyLinesRight)
Expand Down

0 comments on commit 14bc5a9

Please sign in to comment.