Closed kgrz closed 4 years ago
I rechecked this with a dark theme, without any extra configs for diffr v0.1.2:
Ignore the part with the blue background. That's just search result highlighting in less.
Ok, so the issue is this diff:
dot is treated as a word of its own, and is part of the LCS in the first diff: the . following 10 matches the one following example.
This allows to highlight finer differences: for instance,
-foo.bar.baz
+foo.bar.baq
diffr should highlight baz and baq, rather than the whole lines.
What do you expect the highlighting to be?
I've put up a repo for demonstrating this: https://github.com/kgrz/diffr-issue
I've seen this happen with dots, hyphens,
=
and some words too. Another example: