summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-eww-session.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-29 01:07:39 +0100
committerjao <jao@gnu.org>2021-03-29 01:07:39 +0100
commitaa7362dd8cb99c315d8342e34aac20b3bafe079e (patch)
treebfff7b180854b1fc4aea9d4df0a2bf7c20f32401 /lib/net/jao-eww-session.el
parentb97388585d8cf633a60a6ff4a7dcd24a2a8e2b89 (diff)
downloadelibs-aa7362dd8cb99c315d8342e34aac20b3bafe079e.tar.gz
elibs-aa7362dd8cb99c315d8342e34aac20b3bafe079e.tar.bz2
jao-eww-session: don't save uninitialised sessions, for real
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)))