diff options
author | cskksc <ckoparkar@live.in> | 2016-05-20 14:38:03 +0530 |
---|---|---|
committer | cskksc <ckoparkar@live.in> | 2016-05-20 14:38:03 +0530 |
commit | 37c4bd037c360a8eff5a33fdc04102b22ec5dff3 (patch) | |
tree | cc998587d248491d4a3d828a8d5d250ac677215e /cider-eldoc.el | |
parent | 1981b72ebf8d06dbb0e8b74465b9132891a7bb31 (diff) |
Fix eldoc error
Diffstat (limited to 'cider-eldoc.el')
-rw-r--r-- | cider-eldoc.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cider-eldoc.el b/cider-eldoc.el index 4ebac476..26399d23 100644 --- a/cider-eldoc.el +++ b/cider-eldoc.el @@ -261,9 +261,9 @@ Then go back to the point and return its eldoc." (defun cider-eldoc-info-at-sexp-beginning () "Return eldoc info for first symbol in the sexp." (save-excursion - (let* ((beginning-of-sexp (cider-eldoc-beginning-of-sexp)) - ;; If we are at the beginning of function name, this will be -1 - (argument-index (max 0 (1- beginning-of-sexp)))) + (when-let ((beginning-of-sexp (cider-eldoc-beginning-of-sexp)) + ;; If we are at the beginning of function name, this will be -1 + (argument-index (max 0 (1- beginning-of-sexp)))) (unless (or (memq (or (char-before (point)) 0) '(?\" ?\{ ?\[)) (cider-in-comment-p)) |