-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make -pp override --paging and vice versa when passed as a later argument. #2660
Conversation
#[test] | ||
fn enable_pager_if_disable_paging_flag_comes_before_paging() { | ||
bat() | ||
.env("PAGER", "echo pager-output") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the rebase @J-Kappes .
@boyvanduuren I don't understand how this new test can pass on Windows. It is rebased on your work, so shouldn't this need mocked_pagers::from()
? Is CI not working as we expect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is CI not working as we expect?
Seems so indeed. Running the tests locally on Windows/PS cause them to fail. I'll create a bug for this and take another look.
I merged this for now, we can always debug CI problems later. Thank you. |
…ed as a later argument. (sharkdp#2660)" This partially reverts commit e2bf85e.
-P
and-pp
do not take precedence over--paging=always
set in~/.config/bat/config
#2128-pp
override--paging
and vice versa when passed as a later argument. #2330