Skip to content

Commit 71553ee

Browse files
committed
wip
1 parent 4e5f8dd commit 71553ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-shared/nextjournal/clojure_mode/commands.cljc

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@
152152
1 (some-> % n/with-prefix n/right n/end-edge?)
153153
-1 (some-> % n/with-prefix n/left n/start-edge?)))))]
154154
(let [str? (n/string? parent)]
155-
(prn :parent (n/string state parent) :str str?)
156155
(when-let [target (case direction 1 (first (remove n/line-comment? (n/rights (n/with-prefix parent))))
157156
-1 (first (remove n/line-comment? (n/lefts (n/with-prefix parent)))))]
158157
{:cursor/mapped from
@@ -164,10 +163,11 @@
164163
(-> edge
165164
n/from-to
166165
(cond->
167-
true #_(not str?) (j/assoc! :insert " ")))])
166+
(not str?) (j/assoc! :insert " ")))])
168167
-1
169168
(let [^string edge (n/left-edge-with-prefix state parent)
170169
start (n/start (n/with-prefix parent))]
170+
(prn :parent (n/string state parent) :str str?)
171171
[(cond-> {:from start
172172
:to (+ start (count edge))
173173
#_#_:insert " "}

0 commit comments

Comments
 (0)