Move per sections in help message

This commit is contained in:
Nobuyoshi Nakada 2023-06-05 18:43:33 +09:00
parent b5467ae38a
commit 3cdafe9be1
Notes: git 2023-06-05 15:00:00 +00:00

5
ruby.c
View File

@ -1801,7 +1801,10 @@ rb_f_chomp(int argc, VALUE *argv, VALUE _)
static void
setup_pager_env(void)
{
if (!getenv("LESS")) ruby_setenv("LESS", "-R"); // Output "raw" control characters.
if (!getenv("LESS")) {
// Output "raw" control characters, and move per sections.
ruby_setenv("LESS", "-R +/^[A-Z].*");
}
}
#ifdef _WIN32