lazygit
lazygit copied to clipboard
Color codes at the top/end of pager
Describe the bug
There are color codes printed at the top and end of the git show output.
Note: this does not happen in a regular terminal window (outside lazygit).
Expected behavior No color codes / weird text.
Should be exactly like in a regular terminal window:
git show
Version info:
- Run
lazygit --versionand paste the result here:commit=5e388e21c8ca6aa883dbcbe45c47f6fdd5116815, build date=2023-08-07T14:05:48Z, build source=binaryRelease, version=0.40.2, os=linux, arch=amd64, git version=2.34.1 - Run
git --versionand paste the result here:git version 2.34.1
Additional context
- I use Kitty:
kitty 0.21.2 - I use delta as a pager:
delta 0.16.5 - I use bat:
bat 0.24.0 - I use
Ubuntu 22.04 LTS
See my configs:
- Lazygit: https://github.com/gruvw/.dotfiles/blob/main/lazygit/.config/lazygit/config.yml
- Kitty: https://github.com/gruvw/.dotfiles/blob/main/kitty/.config/kitty/kitty.conf
- Bat: https://github.com/gruvw/.dotfiles/tree/main/bat/.config/bat
- Git / Delta: https://github.com/gruvw/.dotfiles/blob/main/git/.gitconfig
Could you try with --dark added to pager in your lazygit config?
Same as in docs here: https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_Pagers.md#delta
I had similar issue which disappeared after adding this flag.
This should no longer be necessary with the 0.41.0 version though.