summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.c b/init.c
index 533f8b71..7d26ea6c 100644
--- a/init.c
+++ b/init.c
@@ -1836,6 +1836,10 @@ void mutt_init (int skip_sys_rc, LIST *commands)
set_option (OPTLOCALES);
#endif
+ /* Unset suspend by default if we're the session leader */
+ if (getsid(0) == getpid())
+ unset_option (OPTSUSPEND);
+
mutt_init_history ();