Skip to content

gh pr diff returns broken output when using delta pager on Windows #3703

@Jackenmen

Description

@Jackenmen

Describe the bug

I think this is an issue with gh doing something with the output of the pager because this is not happening when I'm using delta with git in the same shells just fine.

Screenshots

Comparison between output of gh pr diff 5056 and git diff 18faaaa09a..258a999c70 (which corresponds to the same diff):

Command Prompt used directly with cmd.exe:
image
Command Prompt used through Windows Terminal:
image
PowerShell used through Windows Terminal:
image

Steps to reproduce the behavior

  1. Install delta (you can also just download the executable and put full path instead of delta in the next command)
  2. gh config set pager delta
  3. gh pr diff PR_ID

Expected vs actual behavior

I expected it to work similarly to how it works with git

Logs

N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority-3Affects a small number of users or is largely cosmeticwindowsRelated to Windows hosts or runners

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions