fix: can't input page reference with spaces

This commit is contained in:
Tienson Qin
2021-05-10 20:43:56 +08:00
parent f05bd7e4e0
commit a2d35f6208
2 changed files with 7 additions and 5 deletions

View File

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