mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-13 10:17:34 +01:00
Prevent search expression in CodeMirror editor from crossing line boundaries
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/493
This commit is contained in:
parent
cd1a11fa9d
commit
72bbcdd93c
1 changed files with 3 additions and 2 deletions
|
@ -170,7 +170,7 @@
|
||||||
return cm.getSearchCursor(
|
return cm.getSearchCursor(
|
||||||
query,
|
query,
|
||||||
pos,
|
pos,
|
||||||
{caseFold: queryCaseInsensitive(query), multiline: true}
|
{ caseFold: queryCaseInsensitive(query), multiline: false }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +209,8 @@
|
||||||
}
|
}
|
||||||
state.annotate = cm.showMatchesOnScrollbar(
|
state.annotate = cm.showMatchesOnScrollbar(
|
||||||
state.query,
|
state.query,
|
||||||
queryCaseInsensitive(state.query)
|
queryCaseInsensitive(state.query),
|
||||||
|
{ multiline: false }
|
||||||
);
|
);
|
||||||
let count = state.annotate.matches.length;
|
let count = state.annotate.matches.length;
|
||||||
state.widget
|
state.widget
|
||||||
|
|
Loading…
Reference in a new issue