fix: Using a #tag in a line followed by a [[page-link]] causes line to

be erased

close #2149
This commit is contained in:
Tienson Qin
2021-06-10 22:39:31 +08:00
parent d5458e80bd
commit 648e1ca1a2

View File

@@ -2588,7 +2588,9 @@
(when (= c " ")
(when (or (= (util/nth-safe value (dec (dec current-pos))) "#")
(not (state/get-editor-show-page-search?)))
(not (state/get-editor-show-page-search?))
(and (state/get-editor-show-page-search?)
(not= (util/nth-safe value current-pos) "]")))
(state/set-editor-show-page-search-hashtag! false)))
(when (and @*show-commands (not= key-code 191)) ; not /