(query, options)
| 139 | } |
| 140 | |
| 141 | findInPlace(query, options) { |
| 142 | // If requested, restore the scroll position (so that failed searches leave the scroll position |
| 143 | // unchanged). |
| 144 | this.checkReturnToViewPort(); |
| 145 | FindMode.updateQuery(query); |
| 146 | // Restore the selection. That way, we're always searching forward from the same place, so we |
| 147 | // find the right match as the user adds matching characters, or removes previously-matched |
| 148 | // characters. See #1434. |
| 149 | this.restoreSelection(); |
| 150 | query = FindMode.query.isRegex |
| 151 | ? FindMode.getQueryFromRegexMatches() |
| 152 | : FindMode.query.parsedQuery; |
| 153 | FindMode.query.hasResults = FindMode.execute(query, options); |
| 154 | } |
| 155 | |
| 156 | static updateQuery(query) { |
| 157 | let pattern; |
no test coverage detected