winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Difference does not highlighed in Diff Pane sometimes

Open vinixwu opened this issue 6 years ago • 6 comments

WinMerge Version: 2.16.6.0 X64 OS: Win10 2004

When I opened a file for version compare, I noticed that some differences didn't highlighed in Diff Pane: image

But some of the differences in the same file displayed correctly: image

I opened a new WinMerge window and pasted just the line in question, it displayed correctly: image

I've quoted a small part of the original files which can also reproduce the problem: Left.txt Right.txt

vinixwu avatar Jun 05 '20 03:06 vinixwu

The reason the differences are not highlighted is that the line is not a difference line, but a moved block line.

Disable the moved block detection or to make it easier to recognize that it is a move block, the following settings are recommended.

image

sdottaka avatar Jun 05 '20 13:06 sdottaka

I've just installed winmerge and have a similar sounding issue. To see the differences in Diff pane you have to use the next/prev/last diff buttons or hotkeys. Is this a bug or is there an option to see the differences by simply clicking on the line with a mouse?

netinput avatar May 30 '23 02:05 netinput

The reason the differences are not highlighted is that the line is not a difference line, but a moved block line.

In 1st image, the number in the URL is different. So you mean that similar (but not the same) line is detected as moved block?

vinixwu avatar May 30 '23 02:05 vinixwu

I've just installed winmerge and have a similar sounding issue. To see the differences in Diff pane you have to use the next/prev/last diff buttons or hotkeys. Is this a bug or is there an option to see the differences by simply clicking on the line with a mouse?

It is not a bug. If you double click on a line with a difference, you will see that difference line in the Diff Pane.

sdottaka avatar May 30 '23 12:05 sdottaka

The reason the differences are not highlighted is that the line is not a difference line, but a moved block line.

In 1st image, the number in the URL is different. So you mean that similar (but not the same) line is detected as moved block?

I'm not sure what "the number in the URL" means, but WinMerge treats lines with the same content as moving blocks, like this:

image

sdottaka avatar May 30 '23 12:05 sdottaka

Thank you for your response. :)

I suggest these matched lines should also be displayed in the Diff Pane. For example, line 67 of Left.txt and line 54 of Right.txt.

Takashi Sawanaka @.***> 於 2023年5月30日 週二 下午8:25寫道:

The reason the differences are not highlighted is that the line is not a difference line, but a moved block line.

In 1st image, the number in the URL is different. So you mean that similar (but not the same) line is detected as moved block?

I'm not sure what "the number in the URL" means, but WinMerge treats lines with the same content as moving blocks, like this:

[image: image] https://user-images.githubusercontent.com/98126/241965339-9e635bb7-6174-4f03-93f7-36a72696ee8c.png

— Reply to this email directly, view it on GitHub https://github.com/WinMerge/winmerge/issues/355#issuecomment-1568344118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6TTP4S3VKHQOPDRQ36NG3XIXRNFANCNFSM4NTGAJWA . You are receiving this because you authored the thread.Message ID: @.***>

vinixwu avatar Jun 14 '23 03:06 vinixwu