[systemd-devel] [PATCH] pager: wrap long lines by default
Tobias Geerinckx-Rice
tobias.geerinckx.rice at gmail.com
Mon Aug 18 11:58:44 PDT 2014
Wrap lines longer than the screen width to multiple rows instead of
making them stumble abruptly off the edge.
---
man/less-variables.xml | 2 +-
src/shared/pager.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/man/less-variables.xml b/man/less-variables.xml
index 09cbd42..4264692 100644
--- a/man/less-variables.xml
+++ b/man/less-variables.xml
@@ -23,7 +23,7 @@
<listitem><para>Override the default
options passed to
<command>less</command>
- (<literal>FRSXMK</literal>).</para></listitem>
+ (<literal>FRXMK</literal>).</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
diff --git a/src/shared/pager.c b/src/shared/pager.c
index 5479094..4eefe96 100644
--- a/src/shared/pager.c
+++ b/src/shared/pager.c
@@ -91,7 +91,7 @@ int pager_open(bool jump_to_end) {
less_opts = getenv("SYSTEMD_LESS");
if (!less_opts)
- less_opts = "FRSXMK";
+ less_opts = "FRXMK";
if (jump_to_end)
less_opts = strappenda(less_opts, " +G");
setenv("LESS", less_opts, 1);
--
2.0.4
More information about the systemd-devel
mailing list