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
1 changed files with 3 additions and 2 deletions

View File

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