mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
fix: cannot delete command bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user