mirror of https://github.com/gorhill/uBlock.git
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
|
@ -170,7 +170,7 @@
|
|||
return cm.getSearchCursor(
|
||||
query,
|
||||
pos,
|
||||
{caseFold: queryCaseInsensitive(query), multiline: true}
|
||||
{ caseFold: queryCaseInsensitive(query), multiline: false }
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -209,7 +209,8 @@
|
|||
}
|
||||
state.annotate = cm.showMatchesOnScrollbar(
|
||||
state.query,
|
||||
queryCaseInsensitive(state.query)
|
||||
queryCaseInsensitive(state.query),
|
||||
{ multiline: false }
|
||||
);
|
||||
let count = state.annotate.matches.length;
|
||||
state.widget
|
||||
|
|
Loading…
Reference in New Issue