fix: cannot delete command bug

This commit is contained in:
Weihua Lu
2021-04-15 16:18:07 +08:00
parent d0c8ddf030
commit 2e04791d01

View File

@@ -2014,13 +2014,15 @@
(= (util/nth-safe value (dec current-pos)) commands/slash))
(do
(reset! *slash-caret-pos nil)
(reset! *show-commands false))
(reset! *show-commands false)
(.setRangeText input "" (dec current-pos) current-pos))
(and (> current-pos 1)
(= (util/nth-safe value (dec current-pos)) commands/angle-bracket))
(do
(reset! *angle-bracket-caret-pos nil)
(reset! *show-block-commands false))
(reset! *show-block-commands false)
(.setRangeText input "" (dec current-pos) current-pos))
;; pair
(and