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:
Raymond Hill 2019-04-23 19:26:02 -04:00
parent cd1a11fa9d
commit 72bbcdd93c
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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