commit da9256b23121082b760cfb1ddfe80add45747203
parent d8bd0b28b1eba9833a55c68d6beaccb4d0604c88
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 3 Jun 2023 19:49:01 +0200
haredoc: set LESS to FRX if unset
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha
@@ -299,7 +299,7 @@ fn init_tty(ctx: *context) io::handle = {
const pipe = exec::pipe();
exec::addfile(&pager, os::stdin_file, pipe.0);
// Get raw flag in if possible
- exec::setenv(&pager, "LESS", os::tryenv("LESS", "R"))!;
+ exec::setenv(&pager, "LESS", os::tryenv("LESS", "FRX"))!;
exec::setenv(&pager, "MORE", os::tryenv("MORE", "R"))!;
ctx.pager = exec::start(&pager)!;
return pipe.1;