Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js

Issue 2772343006: DevTools: Roll CodeMirror to 5.25.1 (Closed)
Patch Set: stray space Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
diff --git a/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js b/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
index 70e1ae18c7481742598c8b2069b8a6c717f47257..76754ed557fe03c0449cbadd4b927151a3be898d 100644
--- a/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
+++ b/third_party/WebKit/Source/devtools/front_end/cm/matchbrackets.js
@@ -102,8 +102,10 @@
}
CodeMirror.defineOption("matchBrackets", false, function(cm, val, old) {
- if (old && old != CodeMirror.Init)
+ if (old && old != CodeMirror.Init) {
cm.off("cursorActivity", doMatchBrackets);
+ if (currentlyHighlighted) {currentlyHighlighted(); currentlyHighlighted = null;}
+ }
if (val) {
cm.state.matchBrackets = typeof val == "object" ? val : {};
cm.on("cursorActivity", doMatchBrackets);

Powered by Google App Engine
This is Rietveld 408576698