Skip to content

Fix lazygit diff pager width for delta#70

Merged
michaelbarton merged 2 commits intomasterfrom
claude/fix-pr-merge-SDwD3
Mar 1, 2026
Merged

Fix lazygit diff pager width for delta#70
michaelbarton merged 2 commits intomasterfrom
claude/fix-pr-merge-SDwD3

Conversation

@michaelbarton
Copy link
Owner

Summary

  • Switch lazygit pager config from legacy paging.pager to the modern pagers array format
  • Add --width={{columnWidth}} to the delta pager command so delta uses the lazygit panel width instead of the full terminal width
  • Fixes side-by-side diff rendering and prevents line wrapping/overflow in the lazygit diff panel
  • Fix black formatting to use project's --line-length=100 setting (was causing CI failure)

Supersedes #65 (closed due to CI formatting failure).

Changes

# Before (legacy format, no width)
paging:
  colorArg: always
  pager: delta --paging=never

# After (modern format, correct panel width)
pagers:
  - pager: delta --paging=never --width={{columnWidth}}

Test plan

  • Open lazygit in a repo with unstaged changes
  • Verify delta renders diffs correctly in the diff panel
  • Verify side-by-side mode uses the correct panel width (no overflow/wrapping)
  • Try cycling pagers with the pipe key (new capability from pagers array format)

https://claude.ai/code/session_01MnCD6D42cqYCZA7aJwJEEN

Switch from legacy paging.pager to the modern pagers array format and
pass --width={{columnWidth}} so delta renders diffs using the actual
lazygit panel width instead of the full terminal width. This fixes
side-by-side rendering and prevents line wrapping in the diff panel.

https://claude.ai/code/session_012caDs9Cg7i9JKrTeinxsKY
The previous commit reformatted offlineimap.py using black's default
88-char line width, but the project uses --line-length=100. This caused
the CI fmt_check to fail.

https://claude.ai/code/session_01MnCD6D42cqYCZA7aJwJEEN
@michaelbarton michaelbarton merged commit f81d55f into master Mar 1, 2026
1 check passed
@michaelbarton michaelbarton deleted the claude/fix-pr-merge-SDwD3 branch March 1, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants