summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index a315243..4d4702c 100644
--- a/parse.c
+++ b/parse.c
@@ -2494,7 +2494,7 @@ static struct expr *parse_xdev(struct parser_state *state, int arg1, int arg2) {
*/
static CFILE *launch_pager(pid_t *pid, CFILE *cout) {
char *pager = getenv("PAGER");
- if (!pager) {
+ if (!pager || !pager[0]) {
pager = "more";
}