jesseduffield / jesseduffield/lazygit

Color codes at the top/end of pager

Open
#3,190 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**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).

![image](https://github.com/jesseduffield/lazygit/assets/63407038/ba7f1a10-7981-4f1b-8913-48f4945b7051)

**Expected behavior**
No color codes / weird text.

Should be exactly like in a regular terminal window:

`git show`
![image](https://github.com/jesseduffield/lazygit/assets/63407038/b573b812-207b-4ecd-afb1-2b23f5a07c09)

**Version info:**
- _Run `lazygit --version` and 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 --version` and 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.