From e04fbd199222645388c5a978938f3c23ef7f7a22 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 17 Mar 2021 21:07:18 +0100 Subject: [PATCH 1/2] Include LESS in --diagnostic So issues like #1586 are easier to troubleshoot. --- src/bin/bat/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/bat/main.rs b/src/bin/bat/main.rs index eb047809..dadcc673 100644 --- a/src/bin/bat/main.rs +++ b/src/bin/bat/main.rs @@ -238,6 +238,7 @@ fn run() -> Result { .info(EnvironmentVariables::list(&[ "SHELL", "PAGER", + "LESS", "BAT_PAGER", "BAT_CACHE_PATH", "BAT_CONFIG_PATH", From aa09a9dc04b2aec5572b2d389b1800f48b30bd8b Mon Sep 17 00:00:00 2001 From: Ethan P Date: Tue, 6 Apr 2021 15:33:34 -0700 Subject: [PATCH 2/2] Update changelog for #1589 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b02eb41..e438d94f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ## Other - `Input::ordinary_file` and `Input::with_name` now accept `Path` rather than `OsStr` see #1571 (@matklad) +- The `LESS` environment variable is now included in `bat --diagnostic`, see #1589 (@Enselic) - Increased min. required Rust version to 1.45 ## Syntaxes