|
|
@@ -683,9 +683,11 @@
|
|
|
last-input-char (util/nth-safe value (dec current-pos))]
|
|
|
(case last-input-char
|
|
|
"/"
|
|
|
- (when-let [matched-commands (seq (editor-handler/get-matched-commands input))]
|
|
|
- (reset! *slash-caret-pos (util/get-caret-pos input))
|
|
|
- (reset! *show-commands true))
|
|
|
+ (let [prev-char (util/nth-safe value (dec (dec current-pos)))]
|
|
|
+ (when (string/blank? prev-char)
|
|
|
+ (when-let [matched-commands (seq (editor-handler/get-matched-commands input))]
|
|
|
+ (reset! *slash-caret-pos (util/get-caret-pos input))
|
|
|
+ (reset! *show-commands true))))
|
|
|
"<"
|
|
|
(when-let [matched-commands (seq (editor-handler/get-matched-block-commands input))]
|
|
|
(reset! *angle-bracket-caret-pos (util/get-caret-pos input))
|