Skip to content

Commit 13fc517

Browse files
author
Bozhidar Batsov
committed
Use completion context only in clojure-mode buffers
1 parent d2e370d commit 13fc517

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cider-interaction.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ form, with symbol at point replaced by __prefix__."
759759
;; Important because `beginning-of-defun' and
760760
;; `ending-of-defun' work incorrectly in the REPL
761761
;; buffer, so context extraction fails there.
762-
(not (eq major-mode 'cider-repl-mode)))
762+
(derived-mode-p 'clojure-mode))
763763
(or (cider-completion-get-context-at-point)
764764
"nil")
765765
"nil")))

0 commit comments

Comments
 (0)