-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken line breaks when using it with delta
as git-diff pager
#2307
Comments
Quick question before I have time for a more deeper investigation: Does it look OK to you if you disable wrapping? Like this:
|
Yes, it does. What does that mean for me? |
@sharkdp I think we should revert #2189 and do a 0.22.1 point release ASAP. Do you agree? I didn't know about this use case, but it seems like a basic use case, so the short term solution should be to revert that PR, I think. That will make #2185 occur again, but that seems like more of an edge case than the use case in this issue. |
This reverts commit 8174e02. Turns out it is needed for a common use case, see sharkdp#2307. It is not a clean revert, because I adjust CHANGELOG.md and also add a comment to the test. I also had to resolve a small `use` conflict.
PR that does the revert and also prepares for a v0.22.1 release: #2308 |
Fix released as v0.22.1. |
Thank you for the very quick fix! |
What steps will reproduce the bug?
export PAGER=bat
git config pager.diff=delta
What happens?
Line breaks are broken.
...
What did you expect to happen instead?
Line breaks are okay.
...
How did you install
bat
?pacman -S bat
, can also reproduce it viacargo install
, as well asgit clone
followed bycargo install --path .
bat 0.21.0 (405e5f74)
bat 0.22.0 (1f9519d8)
(release)bat 0.22.0 (6680f65)
(HEAD)git bisect
points to 899fdbbThe error is triggered when running
git-diff
, withpager.diff
set todelta
. My$PAGER
is set tobat
. Therefore I don't know how to apply the--diagnostics
part.P.S.: The
gdi
command is an alias togit diff
.The text was updated successfully, but these errors were encountered: