diff options
author | jao <jao@gnu.org> | 2021-03-29 01:07:39 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-03-29 01:07:39 +0100 |
commit | aa7362dd8cb99c315d8342e34aac20b3bafe079e (patch) | |
tree | bfff7b180854b1fc4aea9d4df0a2bf7c20f32401 | |
parent | b97388585d8cf633a60a6ff4a7dcd24a2a8e2b89 (diff) | |
download | elibs-aa7362dd8cb99c315d8342e34aac20b3bafe079e.tar.gz elibs-aa7362dd8cb99c315d8342e34aac20b3bafe079e.tar.bz2 |
jao-eww-session: don't save uninitialised sessions, for real
-rw-r--r-- | lib/net/jao-eww-session.el | 5 |
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))) |