jesseduffield / jesseduffield/lazygit

Diff view hunk heder and the context line is one the same line

Open
#4,300 0 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**
When viewing diff the hunk header and the diff context are at the same line

**To Reproduce**
Not so sure but the issuse is not on the vscode lazygit

**Expected behavior**
I want the diff context and the hunk header to be at the separate lines

**Screenshots**
![Image](https://github.com/user-attachments/assets/5f57461c-3b3e-4b89-92ab-59dbe09d4067)
![Image](https://github.com/user-attachments/assets/20594fc0-083c-48f4-8d9e-b7ba6838d6fa)

**Version info:**
lazygit : commit=, build date=, build source=homebrew, version=0.46.0, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)

git : git version 2.39.5 (Apple Git-154)

**Additional context**
context and header is at the separate line on when the context line shows the top of file

** lazygit -l **

following is the log when I do increase or decrease the context line size

Feb 21 13:02:02 |DEBU| RunCommand command="git -C /Users/unemotioned/.dotfiles diff --no-ext-diff --submodule --unified=5 --color=never --find-renames=50% --cached -- nvim/.config/nvim/lua/josean/core/keymaps.lua"
Feb 21 13:02:02 |INFO| git -C /Users/unemotioned/.dotfiles diff --no-ext-diff --submodule --unified=5 --color=never --find-renames=50% --cached -- nvim/.config/nvim/lua/josean/core/keymaps.lua (15.66425ms)

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.