MCPcopy
hub / github.com/witheve/Eve / updateSearchQuery

Function updateSearchQuery

src/codemirror.js:13160–13175  ·  view source on GitHub ↗
(cm, rawQuery, ignoreCase, smartCase)

Source from the content-addressed store, hash-verified

13158 }
13159 // Returns true if the query is valid.
13160 function updateSearchQuery(cm, rawQuery, ignoreCase, smartCase) {
13161 if (!rawQuery) {
13162 return;
13163 }
13164 var state = getSearchState(cm);
13165 var query = parseQuery(rawQuery, !!ignoreCase, !!smartCase);
13166 if (!query) {
13167 return;
13168 }
13169 highlightSearchMatches(cm, query);
13170 if (regexEqual(query, state.getQuery())) {
13171 return query;
13172 }
13173 state.setQuery(query);
13174 return query;
13175 }
13176 function searchOverlay(query) {
13177 if (query.source.charAt(0) == '^') {
13178 var matchSol = true;

Callers 4

handleQueryFunction · 0.85
onPromptKeyUpFunction · 0.85
onPromptKeyDownFunction · 0.85
VimFunction · 0.85

Calls 4

getSearchStateFunction · 0.85
parseQueryFunction · 0.85
highlightSearchMatchesFunction · 0.85
regexEqualFunction · 0.85

Tested by

no test coverage detected