fix: cannot delete hashtag

pull/1686/head
Weihua Lu 2021-04-18 19:40:35 +08:00
parent 17084af429
commit 8c8161dcb2
1 changed files with 3 additions and 1 deletions

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