chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f907bc6
)
pager: tiny beautification
author
Lennart Poettering
<lennart@poettering.net>
Tue, 11 Oct 2016 15:46:59 +0000
(17:46 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:55 +0000
(08:50 +0200)
src/shared/pager.c
patch
|
blob
|
history
diff --git
a/src/shared/pager.c
b/src/shared/pager.c
index bb3e17fee2af206041162b7f0297c9cde520a461..184a0f57846dcb520ed79cd6fec9adc93bcafa36 100644
(file)
--- a/
src/shared/pager.c
+++ b/
src/shared/pager.c
@@
-36,6
+36,7
@@
#include "process-util.h"
#include "signal-util.h"
#include "string-util.h"
+#include "strv.h"
#include "terminal-util.h"
static pid_t pager_pid = 0;
@@
-71,7
+72,7
@@
int pager_open(bool no_pager, bool jump_to_end) {
pager = getenv("PAGER");
/* If the pager is explicitly turned off, honour it */
- if (pager &&
(pager[0] == 0 || streq(pager, "cat")
))
+ if (pager &&
STR_IN_SET(pager, "", "cat"
))
return 0;
/* Determine and cache number of columns before we spawn the