Skip to content

External diff command do not support columnWidth placeholder #3119

@AFutureD

Description

@AFutureD

Describe the bug

Using difftastic in external diff command with side-by-side display type, there is a view problem.
The lines in the right view unexpectedly wrapped.

To Reproduce
Simply scustom external diff config.

git:
  paging:
    externalDiffCommand: difft --color=always --display=side-by-side --syntax-highlight=off

Expected behavior
Pass window's width to external diff command like pager.

Screenshots
CleanShot 2023-11-19 at 13 57 05@2x

Version info:

> lazygit --version
commit=1d1b8cc01f87bb3495426ac8d81d97573f6840d4, build date=2023-10-27T04:14:57Z, build source=unknown, version=1d1b8cc0, os=darwin, arch=arm64, git version=2.39.2 (Apple Git-143)
> git --version
git version 2.39.2 (Apple Git-143)

Additional context

Note: please try updating to the latest version or manually building the latest master to see if the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions