summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Plisko <cyril.plisko@replixio.com>2017-09-02 15:20:27 +0300
committerCyril Plisko <cyril.plisko@replixio.com>2017-09-02 15:20:27 +0300
commit176dd33c2d9cb72fd1136401cdae359d689d5439 (patch)
tree99d813536d1f987b25d696c055baac19cec86951
parenta61abc00f71ef1803516d8de413564f3093b0e67 (diff)
Fix NOPAGER not being reflected in .is_on()
closes #6
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 121ba22..4e52caa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -130,6 +130,8 @@ impl Pager {
utils::execvp(pager);
}
}
+ } else {
+ self.on = false;
}
}
}