Skip to content

Commit

Permalink
Switch to :quick algorithm for editscript diff
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Jan 26, 2023
1 parent 990749d commit cc798c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/webserver.clj
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
(reset! !error nil)
(broadcast! (if (= (:ns @!doc) (:ns doc))
(let [old-viewer (meta @!doc)
patch (editscript/diff old-viewer (present+reset! doc))]
patch (editscript/diff old-viewer (present+reset! doc) {:algo :quick})]
{:type :patch-state! :patch (editscript/get-edits patch)})
{:type :set-state! :doc (present+reset! doc)})))

Expand Down

0 comments on commit cc798c6

Please sign in to comment.