diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2016-02-28 11:46:50 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2016-02-28 11:46:50 +0200 |
commit | 9d3cfaf2b18e85f7477e2d37d54023dc60741198 (patch) | |
tree | c95b31b1f4f9da66462da32d1ca0937d80936636 /cider-doc.el | |
parent | 7d38107a9582a7a84cb502ff940b0005cbcb5c1b (diff) |
Move an op-supported check where it belongs
Diffstat (limited to 'cider-doc.el')
-rw-r--r-- | cider-doc.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-doc.el b/cider-doc.el index e6d49d9f..a134e5ef 100644 --- a/cider-doc.el +++ b/cider-doc.el @@ -181,7 +181,6 @@ (defun cider-javadoc-handler (symbol-name) "Invoke the nREPL \"info\" op on SYMBOL-NAME if available." (when symbol-name - (cider-ensure-op-supported "info") (let* ((info (cider-var-info symbol-name)) (url (nrepl-dict-get info "javadoc"))) (if url @@ -196,6 +195,7 @@ the value of `cider-prompt-for-symbol'. With prefix arg ARG, does the opposite of what that option dictates." (interactive "P") (cider-ensure-connected) + (cider-ensure-op-supported "info") (funcall (cider-prompt-for-symbol-function arg) "Javadoc for" #'cider-javadoc-handler)) |