You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the delta pager in lazygit specifically in Ghostty, the background color for line-wise additions is gray instead of green.
Here's a summary of the background color values I observe in different situations (using the terminal inspector in Ghostty), including running delta outside lazygit, overriding TERM, and in kitty:
We found other upstream bugs, and I'm proud that Ghostty community have been not only reporting issues, but also providing fixes. Tim made a PR to the popular Go library tcell to fix a particularly bad issue. This is an important library since it is used by popular TUI applications such as lazygit, lazydocker, etc. Without this fix, all of those programs spew garbage unless you run them explicitly with TERM=xterm-256color. I hope this can be accepted soon!
Describe the bug
When using the
delta
pager in lazygit specifically in Ghostty, the background color for line-wise additions is gray instead of green.Here's a summary of the background color values I observe in different situations (using the terminal inspector in Ghostty), including running delta outside lazygit, overriding TERM, and in kitty:
#262626
)#002800
#002800
#005f00
)#002800
(color picker)Is this related? #2962
To Reproduce
Install Ghostty and delta, and use this lazygit config:
Screenshots
It should look like:
Actual:
Version info:
commit=611fabde11d24d9acc71ee26077b9a1101f59f27, build date=2024-09-18T10:56:10Z, build source=binaryRelease, version=0.44.1, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)
git version 2.39.5 (Apple Git-154)
This issue is also present on
master
.The text was updated successfully, but these errors were encountered: