summaryrefslogtreecommitdiff
path: root/pancake.el
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-12-24 21:12:16 +0300
committerdefanor <defanor@uberspace.net>2017-12-24 21:12:16 +0300
commitae2c1a1c3f83994ad66bf1e7031e4c1d3c74aeac (patch)
treeed595493d33f6ac3c7e255e7b5604a367d686ba1 /pancake.el
parentf90360dfcd47c89463860a2cbb4bd2e57168cdd6 (diff)
Open URLs in new session if one is created
Even when calling `pancake' from another pancake buffer.
Diffstat (limited to 'pancake.el')
-rw-r--r--pancake.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/pancake.el b/pancake.el
index e41a822..c0fb9b6 100644
--- a/pancake.el
+++ b/pancake.el
@@ -176,7 +176,8 @@ if no URL is provided."
(interactive)
(when (or new-session (not (consp pancake-buffers)))
(pancake-new))
- (let ((buffer (if (eq major-mode 'pancake-mode)
+ (let ((buffer (if (and (eq major-mode 'pancake-mode)
+ (not new-session))
(current-buffer)
(car pancake-buffers))))
(with-current-buffer buffer