MCPcopy Index your code
hub / github.com/csev/py4e / setSelectionUser

Function setSelectionUser

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:1367–1375  ·  view source on GitHub ↗
(from, to)

Source from the content-addressed store, hash-verified

1365 else shiftSelecting = null;
1366 }
1367 function setSelectionUser(from, to) {
1368 var sh = shiftSelecting && clipPos(shiftSelecting);
1369 if (sh) {
1370 if (posLess(sh, from)) from = sh;
1371 else if (posLess(to, sh)) to = sh;
1372 }
1373 setSelection(from, to);
1374 userSelChange = true;
1375 }
1376 // Update the selection. Last two args are only used by
1377 // updateLines, since they have to be expressed in the line
1378 // numbers before the update.

Callers 6

extendFunction · 0.85
doneFunction · 0.85
loadFileFunction · 0.85
onDropFunction · 0.85
selectWordAtFunction · 0.85
selectLineFunction · 0.85

Calls 3

clipPosFunction · 0.70
posLessFunction · 0.70
setSelectionFunction · 0.70

Tested by

no test coverage detected