Skip to content

Commit df85b9c

Browse files
committed
[matchbrackets] Fix config field name
1 parent 9f00e4d commit df85b9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addon/edit/matchbrackets.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@
7575

7676
function matchBrackets(cm, autoclear, config) {
7777
// Disable brace matching in long lines, since it'll cause hugely slow updates
78-
var maxHighlightLen = cm.state.matchBrackets.maxHighlightLineLength || 1000;
78+
var maxScanLen = cm.state.matchBrackets.maxScanLineLength || 1000;
7979
var marks = [], ranges = cm.listSelections();
8080
for (var i = 0; i < ranges.length; i++) {
8181
var match = ranges[i].empty() && findMatchingBracket(cm, ranges[i].head, config);
82-
if (match && cm.getLine(match.from.line).length <= maxHighlightLen) {
82+
if (match && cm.getLine(match.from.line).length <= maxScanLen) {
8383
var style = match.match ? "CodeMirror-matchingbracket" : "CodeMirror-nonmatchingbracket";
8484
marks.push(cm.markText(match.from, Pos(match.from.line, match.from.ch + 1), {className: style}));
85-
if (match.to && cm.getLine(match.to.line).length <= maxHighlightLen)
85+
if (match.to && cm.getLine(match.to.line).length <= maxScanLen)
8686
marks.push(cm.markText(match.to, Pos(match.to.line, match.to.ch + 1), {className: style}));
8787
}
8888
}

0 commit comments

Comments
 (0)