cleanup: frontend.commands

This commit is contained in:
leizhe
2021-10-15 15:05:51 +08:00
committed by Tienson Qin
parent 1b3ffcda0f
commit 43cc8c2723
2 changed files with 12 additions and 19 deletions

View File

@@ -833,7 +833,7 @@
[new-content marker] (marker/cycle-marker content format (state/get-preferred-workflow))
new-content (string/triml new-content)]
(let [new-pos (commands/compute-pos-delta-when-change-marker
current-input content new-content marker (cursor/pos current-input))]
content marker (cursor/pos current-input))]
(state/set-edit-content! edit-input-id new-content)
(cursor/move-cursor-to current-input new-pos)))))