Skip to content

Commit 84bb98f

Browse files
committed
prevent cross project inferior shell when 1 process exists
1 parent 12f0319 commit 84bb98f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lisp/ess-inf.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,10 @@ to `ess-completing-read'."
858858
(if (or auto-started?
859859
(and (not ask-if-1)
860860
(= 1 num-processes)
861+
(unless (equal (plist-get (ess-r-project-info) :name)
862+
(plist-get (buffer-local-value
863+
'ess-r-project--info-cache
864+
(get-buffer (car proc-buffers))) :name)))
861865
(message "Using process `%s'" (car proc-buffers))))
862866
(car pname-list)
863867
(unless (and ess-current-process-name

0 commit comments

Comments
 (0)