Skip to content

Commit 1e99b82

Browse files
authored
The redundant bit of code was actually required (#191)
Oh, well... Bozhidar needs to pay attention to what he's deleting. Cheers, Bozhidar
1 parent 26a2076 commit 1e99b82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

inf-clojure.el

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,11 @@ process buffer for a list of commands.)"
750750
nil
751751
'confirm-after-completion))))
752752
(let* ((project-dir (clojure-project-dir))
753-
(repl-buffer-name (if project-dir
754-
(format "*inf-clojure %s*" (inf-clojure--project-name project-dir))
755-
"*inf-clojure*")))
753+
(process-buffer-name (if project-dir
754+
(format "inf-clojure %s" (inf-clojure--project-name project-dir))
755+
"inf-clojure"))
756+
;; comint adds the asterisks to both sides
757+
(repl-buffer-name (format "*%s*" process-buffer-name)))
756758
;; Create a new comint buffer if needed
757759
(unless (comint-check-proc repl-buffer-name)
758760
;; run the new process in the project's root when in a project folder
@@ -766,7 +768,7 @@ process buffer for a list of commands.)"
766768
(inf-clojure--prompt-repl-type))))
767769
(message "Starting Clojure REPL via `%s'..." cmd)
768770
(with-current-buffer (apply #'make-comint
769-
"inf-clojure" (car cmdlist) nil (cdr cmdlist))
771+
process-buffer-name (car cmdlist) nil (cdr cmdlist))
770772
(inf-clojure-mode)
771773
(setq-local inf-clojure-repl-type repl-type)
772774
(hack-dir-local-variables-non-file-buffer))))

0 commit comments

Comments
 (0)