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

Method setSelectionRange

content_scripts/mode_visual.js:181–185  ·  view source on GitHub ↗
(range)

Source from the content-addressed store, hash-verified

179 }
180
181 setSelectionRange(range) {
182 this.selection.removeAllRanges();
183 // TODO(philc): Is this return needed?
184 return this.selection.addRange(range);
185 }
186
187 // For "aw", "as". We don't do "ap" (for paragraphs), because Chrome paragraph movements are
188 // weird.

Callers 4

reverseSelectionMethod · 0.95
simulateSelectFunction · 0.80
findMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected