winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Word difference colors for deletions are also used for additions

Open bobbyfox82 opened this issue 1 year ago • 1 comments

When performing a text diff with Line Difference Coloring enabled, the colors for Deleted Word Difference and Deleted Selected Word Diff are applied to the word additions. To reproduce, diff original.txt and modified.txt. See the images below for the diff options used and the diff results.

original.txt modified.txt

Options WordDifference SelectedWordDifference

bobbyfox82 avatar May 29 '24 19:05 bobbyfox82

This is confusing, but it's the expected coloring: if a word in either pane is deleted, the Word Difference (Deleted) color will be applied to the word in the other pane. This is because WinMerge doesn't essentially assume that the left pane is the old file and the right pane is the new file. There are some UI improvement requests for this:

Related issue: https://github.com/WinMerge/winmerge/issues/359

sdottaka avatar May 29 '24 23:05 sdottaka