MCPcopy
hub / github.com/philc/vimium / getQuery

Method getQuery

content_scripts/mode_find.js:275–284  ·  view source on GitHub ↗
(backwards)

Source from the content-addressed store, hash-verified

273
274 // Returns null if no search has been performed yet.
275 static getQuery(backwards) {
276 if (!this.query) return;
277 // check if the query has been changed by a script in another frame
278 const mostRecentQuery = FindModeHistory.getQuery();
279 if (mostRecentQuery !== this.query.rawQuery) {
280 this.updateQuery(mostRecentQuery);
281 }
282
283 return this.getNextQueryFromRegexMatches(backwards);
284 }
285
286 static saveQuery() {
287 FindModeHistory.saveQuery(this.query.rawQuery);

Callers 4

onKeyEventFunction · 0.80
findMethod · 0.80
executeMethod · 0.80
findNextMethod · 0.80

Calls 2

updateQueryMethod · 0.95

Tested by

no test coverage detected