Skip to content

Color is incorrectly cleared with --use-color #175

@felipec

Description

@felipec

When viewing text with color (e.g. git diff) and doing a search, the search is colored in green and the rest of the line will not be colored any more.

You can try this:

echo "\e[33mSearch here, and the rest will be cleared\e[m" | less -R --use-color

The fg color should not be cleared by the search.

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