fix: cannot delete hashtag

This commit is contained in:
Weihua Lu
2021-04-18 19:40:35 +08:00
parent 17084af429
commit 8c8161dcb2

View File

@@ -2059,7 +2059,9 @@
;; deleting hashtag
(and (= deleted "#") (state/get-editor-show-page-search-hashtag?))
(state/set-editor-show-page-search-hashtag! false)
(do
(state/set-editor-show-page-search-hashtag! false)
(.setRangeText input "" (dec current-pos) current-pos))
;; just delete
:else