Skip to content

🐛 side-by-side option only works in diff mode when piping #631

@salmankhilji

Description

@salmankhilji

delta 0.8 breaks the --side-by-side option when directly comparing files A and B (without any git). The option works correctly when diff output is piped to delta, but invoked directly on files A and B, delta seems to ignore the --side-by-side option.

$ diff -u <(seq 5) <(seq 10) | delta --side-by-side

comparing: /dev/fd/63 ⟶   /dev/fd/62
───────────────────────────────────────────────────────────────────────────────

───┐
3: │
───┘
│ 3  │3                                │ 3  │3
│ 4  │4                                │ 4  │4
│ 5  │5                                │ 5  │5
│    │                                 │ 6  │6
│    │                                 │ 7  │7
│    │                                 │ 8  │8
│    │                                 │ 9  │9
│    │                                 │ 10 │10
precor@byteevo-scm:~/Scratch$ seq 5 >a
precor@byteevo-scm:~/Scratch$ seq 10 >b
precor@byteevo-scm:~/Scratch$ delta --side-by-side a b

a ⟶   b
───────────────────────────────────────────────────────────────────────────────

───┐
3: │
───┘
3
4
5
6
7
8
9
10

Screenshot from 2021-06-12 10-07-58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions