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

Method collapseSelectionToFocus

content_scripts/mode_visual.js:172–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 }
171
172 collapseSelectionToFocus() {
173 if (this.selection.toString().length == 0) return;
174 if (this.getDirection() === forward) {
175 this.selection.collapseToEnd();
176 } else {
177 this.selection.collapseToStart();
178 }
179 }
180
181 setSelectionRange(range) {
182 this.selection.removeAllRanges();

Callers 4

reverseSelectionMethod · 0.95
selectLexicalEntityMethod · 0.95
initMethod · 0.80
"c"Function · 0.80

Calls 1

getDirectionMethod · 0.95

Tested by

no test coverage detected