summaryrefslogtreecommitdiff
path: root/cider-repl.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2016-03-23 14:32:41 -0300
committerArtur Malabarba <bruce.connor.am@gmail.com>2016-03-23 14:34:54 -0300
commitc92a063938ce78942f7c33dfce42c5003c7c1cf0 (patch)
treec4d047796494fdb0f664c6faf3a7a62f71749d49 /cider-repl.el
parent987668055a0e6392ff68d167f4392d88210cdb1c (diff)
[Fix #1632] Reset cider-eldoc-last-symbol when metadata changes
Diffstat (limited to 'cider-repl.el')
-rw-r--r--cider-repl.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/cider-repl.el b/cider-repl.el
index ab72fddb..0f9827a5 100644
--- a/cider-repl.el
+++ b/cider-repl.el
@@ -210,6 +210,8 @@ Currently, this is only used to keep `cider-repl-type' updated."
(setq cider-repl-ns-cache (nrepl-dict-merge cider-repl-ns-cache changed-namespaces))
(dolist (b (buffer-list))
(with-current-buffer b
+ ;; Metadata changed, so signatures may have changed too.
+ (setq cider-eldoc-last-symbol nil)
(when (or cider-mode (derived-mode-p 'cider-repl-mode))
(when-let ((ns-dict (nrepl-dict-get changed-namespaces (cider-current-ns))))
(cider-refresh-dynamic-font-lock ns-dict))))))))))