jesseduffield / jesseduffield/lazygit

Pager/paging is not working when focus is in "Unstaged Changes" or "Staged Changes" window

Open
#1,939 2 comments 9 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**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. open a git repo using lazygit
2. switch focus to a modified file in `Files` side panel
3. check the `Unstaged Changed` and `Staged Changes`, the pager is working fine
4. `Enter` on the file, the focus will be in the `Staged Changes`, the pager is not working now

**Expected behavior**
A clear and concise description of what you expected to happen.
pager will work when focus is in the "Unstaged Changes" or "Staged Changes" window, I need the pager to highlight the modified/deleted/added word-by-word instead of simply lines.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/2135996/167940701-15f254b2-7856-437b-8eb4-1ede47b76310.png)

![image](https://user-images.githubusercontent.com/2135996/167940759-d42684c4-b97e-4769-8630-f0dc837c3496.png)

**Desktop (please complete the following information):**
- OS: [e.g. Windows] `Arch Linux 5.17.5-zen1-1-zen`
- Lazygit Version [e.g. v0.1.45] `v0.34` installed from Arch Linux official repo
- The last commit id if you built project from sources (run : ```git rev-parse HEAD```)

**Additional context**
Add any other context about the problem here.

My related config:
```
git:
paging:
colorArg: always
useConfig: false
pager: delta --paging=never --line-numbers
```

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.