We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 906d6a4 commit 1d443e8Copy full SHA for 1d443e8
clojure-mode.el
@@ -2264,8 +2264,11 @@ position before the current position."
2264
(while (< (point) position)
2265
(clojure-forward-logical-sexp 1)
2266
(clojure-backward-logical-sexp 1)
2267
- (push (point) sexp-positions)
2268
- (clojure-forward-logical-sexp 1))
+ ;; Needed to prevent infinite recursion when there's only 1 form in buffer.
+ (if (eq (point) (car sexp-positions))
2269
+ (goto-char position)
2270
+ (push (point) sexp-positions)
2271
+ (clojure-forward-logical-sexp 1)))
2272
(scan-error nil))
2273
sexp-positions)))
2274
0 commit comments