Skip to content

Don't pass --no-init to less when BAT_PAGER is explicitly set #88

@masaeedu

Description

@masaeedu

Hello. I'm running into some issues where git log --graph is no longer clearing the screen after I exit. I believe this is because delta is passing the --no-init argument (along with a few others) to less explicitly. See the screenshot below:

image

I already have my own set of less configuration options in LESS='-R -F --mouse --wheel-lines=10', and it would be ideal if the tool could avoid overriding the user's explicit settings.

I noticed that a similar problem was recently addressed in bat: sharkdp/bat#749, where their solution was to stop passing --no-init to recent enough versions of less; is it possible that delta is just not depending on a recent enough version of bat?

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