Skip to content

Commit

Permalink
Fix occasional error when indenting namespace-qualified function
Browse files Browse the repository at this point in the history
  • Loading branch information
rfkm committed Dec 19, 2015
1 parent 491d5e5 commit 8875c87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cider-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ Returns to the buffer in which the command was invoked."
;; There's no indent metadata, but there might be a clojure-mode
;; indent-spec with fully-qualified namespace.
(when (string-match cider-resolve--prefix-regexp symbol-name)
(when-let ((sym (intern-soft (replace-match (cider-resolve-alias ns (match-string 1 symbol-name))
(when-let ((sym (intern-soft (replace-match (save-match-data
(cider-resolve-alias ns (match-string 1 symbol-name)))
t t symbol-name 1))))
(get sym 'clojure-indent-function))))))

Expand Down

0 comments on commit 8875c87

Please sign in to comment.