Skip to content

Wrapping does not work when piping #758

@desbma

Description

@desbma

Line wrapping seems to be disabled when piping to another process, even when forced with --wrap=character.

$ echo 123456789abcd > /tmp/file
$ bat --style plain --terminal-width 10 --wrap=character /tmp/file
123456789a
bcd
$ bat --style plain --terminal-width 10 --wrap=character /tmp/file | command cat
123456789abcd

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions