Skip to content

Commit 4462e28

Browse files
rfkmcap10morgan
authored andcommitted
Fix occasional error when indenting namespace-qualified function
1 parent 7cc4a19 commit 4462e28

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## master (unreleased)
44

5+
## 0.10.1 / (unreleased)
6+
7+
### Bugs fixed
8+
9+
* [#1475](https://github.com/clojure-emacs/cider/pull/1475): Fix `args-out-of-range` error in `cider--get-symbol-indent`.
10+
511
## 0.10.0 / 2015-12-03
612

713
### New features

cider-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ Returns to the buffer in which the command was invoked."
289289
;; There's no indent metadata, but there might be a clojure-mode
290290
;; indent-spec with fully-qualified namespace.
291291
(when (string-match cider-resolve--prefix-regexp symbol-name)
292-
(when-let ((sym (intern-soft (replace-match (cider-resolve-alias ns (match-string 1 symbol-name))
292+
(when-let ((sym (intern-soft (replace-match (save-match-data
293+
(cider-resolve-alias ns (match-string 1 symbol-name)))
293294
t t symbol-name 1))))
294295
(get sym 'clojure-indent-function))))))
295296

0 commit comments

Comments
 (0)