Skip to content

🐛 Decorations break when terminal width less than header text #2043

@skajfes

Description

@skajfes

When displaying git diff on a smaller terminal screen (or within lazygit where less columns are available to output the diff) header decorations break completely.

Screenshot of output looks like this:

Image

I am wondering if there is a set of settings that i can use to draw the decorations up to screen width, so the decorations don't wrap, but the text wraps? Something like this:

---------------------------------| 
The_extra_long_filename_goes_here|
and_is_long.cs                   |
---------------------------------|

Currently I'm working around this by hiding the decorators, but then large diffs become less clear as the hunks and files are less visible.

Is it possible to add an option to limit the headers width?

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