diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2018-03-18 16:31:30 +0700 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2018-03-18 16:32:34 +0700 |
commit | 6a7b8ba0b7574c0fcf21718448a29cbcb074dbff (patch) | |
tree | 646f774d5732ce4c41d8d801d287c7a9291a7837 /cider-client.el | |
parent | 418f227e562d8dc0d1ef2e92065adaa4b44376c9 (diff) |
Use a more subtle way to indicate a REPL is a cljs REPL
Diffstat (limited to 'cider-client.el')
-rw-r--r-- | cider-client.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cider-client.el b/cider-client.el index 9d6fc0be..21e0bd3c 100644 --- a/cider-client.el +++ b/cider-client.el @@ -344,9 +344,9 @@ to a still-undetermined bug in the state-stracker backend." (cljs-conn ;; So we have multiple connections. Look for the connection type we ;; want, prioritizing the current project. - (or (seq-find (lambda (c) (string-match "\\bCLJS\\b" (buffer-name c))) + (or (seq-find (lambda (c) (with-current-buffer c (equal cider-repl-type "cljs"))) project-connections) - (seq-find (lambda (c) (string-match "\\bCLJS\\b" (buffer-name c))) + (seq-find (lambda (c) (with-current-buffer c (equal cider-repl-type "cljs"))) (cider-connections))))) (unless cider--has-warned-about-bad-repl-type (setq cider--has-warned-about-bad-repl-type t) |