From: Tobias Stoeckmann Date: Thu, 26 Feb 2026 21:10:40 +0000 (+0100) Subject: lib/pager: Add LV support X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ab613312dcb566a15b79c5accd74746c37f571ee;p=thirdparty%2Futil-linux.git lib/pager: Add LV support Set LV environment variable to "-c" for lv support. Taken from https://github.com/git/git/commit/e54c1f2d2533c5406abeb8e3e0cf78c68ca9c21e Signed-off-by: Tobias Stoeckmann --- diff --git a/lib/pager.c b/lib/pager.c index f8383ff52..54fbb5bf9 100644 --- a/lib/pager.c +++ b/lib/pager.c @@ -69,6 +69,8 @@ static void pager_preexec(void) if (getenv("LESS") == NULL && setenv("LESS", "FRSX", 0) != 0) warn(_("failed to set the %s environment variable"), "LESS"); + if (getenv("LV") == NULL && setenv("LV", "-c", 0) != 0) + warn(_("failed to set the %s environment variable"), "LV"); } static int start_command(struct child_process *cmd)