perf: sub selected block

This commit is contained in:
Tienson Qin
2022-08-15 12:41:03 +08:00
parent 39e2f0ac1c
commit ca7b86f082
5 changed files with 31 additions and 8 deletions

View File

@@ -204,7 +204,8 @@
(defn clear-selection!
[]
(state/clear-selection!))
(state/clear-selection!)
(util/select-unhighlight! (dom/by-class "selected")))
(defn- text-range-by-lst-fst-line [content [direction pos]]
(case direction