A description of the issue. A screenshot is often helpful too.
I'm using difftastic for diffing in git with:
When diffing a line with unprintable characters (like Unit Separator - 0x1F) the width of the line is not properly calculated. I think because those characters are usually displayed as two regular characters (Unit Separator is displayed as ^_). If the lines are close to half of the screen, the double width characters make left half bigger than half of the screen, which results in the right side wrapping to to left half.

When it is done through git difftool or by comparing two files with difft directly, the unprintable characters are not displayed at all. I need to pipe the output to less to have the same effect.
A copy of what you're diffing.
Before: LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISICING ELIT, SED DO EIUSMOD������TEMPOR
After: lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod������tempor
you might have to add or remove some characters to make it close to half the screen.
The version of difftastic you're using (see difft --version) and your operating system.
$ difft --version
Difftastic 0.51.1 (8752af74d 2023-08-25)
$ uname -a
6.4.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 24 Aug 2023 00:38:14 +0000 x86_64 GNU/Linux
A description of the issue. A screenshot is often helpful too.
I'm using
difftasticfor diffing in git with:When diffing a line with unprintable characters (like Unit Separator - 0x1F) the width of the line is not properly calculated. I think because those characters are usually displayed as two regular characters (Unit Separator is displayed as
^_). If the lines are close to half of the screen, the double width characters make left half bigger than half of the screen, which results in the right side wrapping to to left half.When it is done through
git difftoolor by comparing two files withdifftdirectly, the unprintable characters are not displayed at all. I need to pipe the output tolessto have the same effect.A copy of what you're diffing.
Before:
LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISICING ELIT, SED DO EIUSMOD������TEMPORAfter:
lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod������temporyou might have to add or remove some characters to make it close to half the screen.
The version of difftastic you're using (see difft --version) and your operating system.