mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
Add back fix from #6147 along with its test cases
Also fix testing sexp and reset state
This commit is contained in:
committed by
Tienson Qin
parent
674022d4fb
commit
3440a3d433
@@ -1859,7 +1859,9 @@
|
||||
(state/clear-editor-action!)
|
||||
|
||||
;; Open "Search page or New page" auto-complete
|
||||
(= last-input-char commands/hashtag)
|
||||
(and (= last-input-char commands/hashtag)
|
||||
;; Only trigger at beginning of line or before whitespace
|
||||
(or (= 1 pos) (contains? #{" " "\t"} (get (.-value input) (- pos 2)))))
|
||||
(do
|
||||
(state/set-editor-action-data! {:pos (cursor/get-caret-pos input)})
|
||||
(state/set-editor-last-pos! pos)
|
||||
|
||||
Reference in New Issue
Block a user