summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-05-20 13:24:01 +0100
committerjao <jao@gnu.org>2022-05-20 13:25:00 +0100
commit1a9bf87a43a8d3c5e8fd2b30fc7d6ac696be7ef5 (patch)
tree5bfb121829794c73df2b48fdd81b94034b9eb95e /lib
parent8b9787e1c86a7fc9a1145016099a29842ff0bf1d (diff)
downloadelibs-1a9bf87a43a8d3c5e8fd2b30fc7d6ac696be7ef5.tar.gz
elibs-1a9bf87a43a8d3c5e8fd2b30fc7d6ac696be7ef5.tar.bz2
avoiding eww session reopening
Diffstat (limited to 'lib')
-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)))