MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / clearSearchHighlight

Function clearSearchHighlight

lib/web/CodeMirror/keymap/vim.js:4476–4484  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

4474 });
4475 }
4476 function clearSearchHighlight(cm) {
4477 var state = getSearchState(cm);
4478 cm.removeOverlay(getSearchState(cm).getOverlay());
4479 state.setOverlay(null);
4480 if (state.getScrollbarAnnotate()) {
4481 state.getScrollbarAnnotate().clear();
4482 state.setScrollbarAnnotate(null);
4483 }
4484 }
4485 /**
4486 * Check if pos is in the specified range, INCLUSIVE.
4487 * Range can be specified with 1 or 2 arguments.

Callers 3

onPromptKeyUpFunction · 0.85
onPromptKeyDownFunction · 0.85
VimFunction · 0.85

Calls 2

getSearchStateFunction · 0.70
clearMethod · 0.45

Tested by

no test coverage detected