MCPcopy Index your code
hub / github.com/philc/vimium / restoreSelection

Method restoreSelection

content_scripts/mode_find.js:131–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 restoreSelection() {
132 if (!this.initialRange) {
133 return;
134 }
135 const range = this.initialRange;
136 const selection = getSelection();
137 selection.removeAllRanges();
138 selection.addRange(range);
139 }
140
141 findInPlace(query, options) {
142 // If requested, restore the scroll position (so that failed searches leave the scroll position

Callers 1

findInPlaceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected