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, 4 insertions, 1 deletions
diff --git a/lib/net/jao-eww-session.el b/lib/net/jao-eww-session.el
index ac9691b..9a34656 100644
--- a/lib/net/jao-eww-session.el
+++ b/lib/net/jao-eww-session.el
@@ -135,7 +135,10 @@ the session is already displayed in a eww tab, jao-eww-session can:
(with-current-buffer b
(when-let (url (jao-eww--current-url))
(when (member url urls)
- (or (eq jao-eww-session-duplicate-tabs 'never)
+ (when (y-or-n-p "Already open session, abort? ")
+ (switch-to-buffer b)
+ (user-error "Aborted"))
+ (or (and (eq jao-eww-session-duplicate-tabs 'never))
(not (y-or-n-p (format "'%s' (%s) is already open. Duplicate? "
(jao-eww-buffer-title) url))))))))
(jao-eww-session--list-buffers)))