Fix tag completion at start of line or whitespace before cursor

This commit is contained in:
Gabriel Horner
2022-07-22 17:17:35 -04:00
committed by Andelf
parent bc69e7d5a1
commit 6a64cdf4b3
2 changed files with 34 additions and 15 deletions

View File

@@ -2758,7 +2758,7 @@
(do (util/stop e)
(autopair input-id key format nil))
(and hashtag? (re-find #"\s+$" value))
(and hashtag? (or (zero? pos) (re-matches #"\s" (get value (dec pos)))))
(do
(commands/handle-step [:editor/search-page-hashtag])
(if (= key "#")