summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-eww-session.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/jao-eww-session.el')
-rw-r--r--lib/net/jao-eww-session.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/net/jao-eww-session.el b/lib/net/jao-eww-session.el
index 6b4d52c..b0c659d 100644
--- a/lib/net/jao-eww-session.el
+++ b/lib/net/jao-eww-session.el
@@ -362,8 +362,9 @@ the session is already displayed in a eww tab, jao-eww-session can:
(defun jao-eww-session-save ()
"Save the current eww session."
(interactive)
- (when (or jao-eww-session-save-always
- (y-or-n-p "Save current eww session? "))
+ (when (and jao-eww-session--init
+ (or jao-eww-session-save-always
+ (y-or-n-p "Save current eww session? ")))
(jao-eww-session-current-to-file)
(jao-eww-session--restart--autosave)))