fix: don't insert pair only when cursor is in between

pull/645/head
Haoji Xu 2020-09-08 01:57:48 +08:00 committed by Tienson Qin
parent 3a87fd7a49
commit e59b82d577
1 changed files with 1 additions and 3 deletions

View File

@ -505,9 +505,7 @@
(and
(contains? (set (keys editor-handler/reversed-autopair-map)) key)
(or
(= (editor-handler/get-previous-input-char input) key)
(= (editor-handler/get-current-input-char input) key)))
(= (editor-handler/get-current-input-char input) key))
(do
(util/stop e)
(util/cursor-move-forward input 1))