Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws an error when bat is being user as pager. #1343

Merged
merged 2 commits into from
Oct 29, 2020

Conversation

adrian-rivera
Copy link
Contributor

As mentioned on #1334 bat should not be used as a value for pager,
this change checks both the balue of bat provided as a parameter or
as an environment variable.

src/output.rs Outdated Show resolved Hide resolved
@adrian-rivera adrian-rivera force-pushed the bat_pager branch 2 times, most recently from aa7a547 to 188f008 Compare October 26, 2020 05:00
src/error.rs Outdated Show resolved Hide resolved
As mentioned on sharkdp#1334 `bat` should not be used as a value for `pager`,
this change checks both the balue of `bat` provided as a parameter or
as an environment variable.
Copy link
Owner

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sharkdp sharkdp merged commit c747ac1 into sharkdp:master Oct 29, 2020
@adrian-rivera adrian-rivera deleted the bat_pager branch October 30, 2020 17:25
@sharkdp
Copy link
Owner

sharkdp commented Nov 23, 2020

Fixed in bat v0.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants