summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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