aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sanity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sanity.cpp')
-rw-r--r--src/sanity.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sanity.cpp b/src/sanity.cpp
index d6da40f4..895112ca 100644
--- a/src/sanity.cpp
+++ b/src/sanity.cpp
@@ -18,8 +18,7 @@ void sanity_lose() {
}
int sanity_check() {
- if (!insane)
- if (get_is_interactive()) history_sanity_check();
+ if (!insane && shell_is_interactive()) history_sanity_check();
if (!insane) reader_sanity_check();
if (!insane) kill_sanity_check();
if (!insane) proc_sanity_check();