We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91954dd commit c579066Copy full SHA for c579066
src-shared/nextjournal/clojure_mode/commands.cljc
@@ -167,9 +167,9 @@
167
-1
168
(let [^string edge (n/left-edge-with-prefix state parent)
169
start (n/start (n/with-prefix parent))]
170
- [{:from start
171
- :to (+ start (count edge))
172
- :insert " "}
+ [(cond-> {:from start
+ :to (+ start (count edge))}
+ (not str?) (j/assoc! :insert " "))
173
{:from (n/start target)
174
:insert edge}]))}))))))))
175
test/nextjournal/clojure_mode_tests.cljc
@@ -273,7 +273,8 @@
273
"('xy|z 1) 2" 1 "('xy|z 1 2)"
274
"'ab|c 1" 1 "'ab|c 1"
275
276
- "\"x|\" 1" 1 "\"x| 1\""))
+ "\"x|\" 1" 1 "\"x| 1\""
277
+ "1 \"x|\"" -1 "\"1 x|\""))
278
279
#?(:squint nil
280
:cljs
0 commit comments