Skip to content

Commit 004df8e

Browse files
committed
Search only top-level forms for ns form
1 parent 3787ada commit 004df8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cljfmt/src/cljfmt/core.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336
zloc)))
337337

338338
(defn- find-namespace [zloc]
339-
(some-> zloc root (z/find z/next ns-form?) z/down z/next z/sexpr))
339+
(some-> zloc root z/down (z/find z/right ns-form?) z/down z/next z/sexpr))
340340

341341
(defn indent
342342
([form]

0 commit comments

Comments
 (0)