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

Function select

lib/web/CodeMirror/test/multi_test.js:141–149  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

139 });
140
141 function select(cm) {
142 var sels = [];
143 for (var i = 1; i < arguments.length; i++) {
144 var arg = arguments[i];
145 if (arg.head) sels.push(arg);
146 else sels.push({head: arg, anchor: arg});
147 }
148 cm.setSelections(sels, sels.length - 1);
149 }
150
151 testCM("indentSelection", function(cm) {
152 select(cm, Pos(0, 1), Pos(1, 1));

Callers 2

multi_test.jsFile · 0.85
restoreMethod · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected