summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/edit/closebrackets.js
diff options
context:
space:
mode:
authorWu Cheng-Han2015-07-04 11:31:01 +0800
committerWu Cheng-Han2015-07-04 11:31:01 +0800
commit01685c255fda6e13f1cd2980130d2e388d52125c (patch)
treec329610e7011c0d77c55ef54f371181aeb362d13 /public/vendor/codemirror/addon/edit/closebrackets.js
parent1d843c8ac257d512a96cf054ab24e6a3c2f34e26 (diff)
Updated codemirror to 5.4.0
Diffstat (limited to 'public/vendor/codemirror/addon/edit/closebrackets.js')
-rwxr-xr-xpublic/vendor/codemirror/addon/edit/closebrackets.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/public/vendor/codemirror/addon/edit/closebrackets.js b/public/vendor/codemirror/addon/edit/closebrackets.js
index 35b5b32c..1ceda4e3 100755
--- a/public/vendor/codemirror/addon/edit/closebrackets.js
+++ b/public/vendor/codemirror/addon/edit/closebrackets.js
@@ -147,6 +147,7 @@
cm.replaceSelections(sels, "around", "+input");
} else if (type == "both") {
cm.replaceSelection(left + right, null, "+input");
+ cm.triggerElectric(left + right);
cm.execCommand("goCharLeft");
} else if (type == "addFour") {
cm.replaceSelection(left + left + left + left, "before", "+input");