mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-13 10:17:34 +01:00
Update to CodeMirror version 5.46
This commit is contained in:
parent
3efb0daa66
commit
cd1a11fa9d
2 changed files with 883 additions and 868 deletions
|
@ -46,7 +46,7 @@
|
||||||
if (match.from.line >= this.gap.to) break;
|
if (match.from.line >= this.gap.to) break;
|
||||||
if (match.to.line >= this.gap.from) this.matches.splice(i--, 1);
|
if (match.to.line >= this.gap.from) this.matches.splice(i--, 1);
|
||||||
}
|
}
|
||||||
var cursor = this.cm.getSearchCursor(this.query, CodeMirror.Pos(this.gap.from, 0), this.caseFold);
|
var cursor = this.cm.getSearchCursor(this.query, CodeMirror.Pos(this.gap.from, 0), {caseFold: this.caseFold, multiline: this.options.multiline});
|
||||||
var maxMatches = this.options && this.options.maxMatches || MAX_MATCHES;
|
var maxMatches = this.options && this.options.maxMatches || MAX_MATCHES;
|
||||||
while (cursor.findNext()) {
|
while (cursor.findNext()) {
|
||||||
var match = {from: cursor.from(), to: cursor.to()};
|
var match = {from: cursor.from(), to: cursor.to()};
|
||||||
|
|
1749
src/lib/codemirror/lib/codemirror.js
vendored
1749
src/lib/codemirror/lib/codemirror.js
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue