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

Function filterSelectionChange

tools/pythonauto/static/codemirror/codemirror.js:2581–2587  ·  view source on GitHub ↗
(doc, anchor, head)

Source from the content-addressed store, hash-verified

2579 }
2580
2581 function filterSelectionChange(doc, anchor, head) {
2582 var obj = {anchor: anchor, head: head};
2583 signal(doc, "beforeSelectionChange", doc, obj);
2584 if (doc.cm) signal(doc.cm, "beforeSelectionChange", doc.cm, obj);
2585 obj.anchor = clipPos(doc, obj.anchor); obj.head = clipPos(doc, obj.head);
2586 return obj;
2587 }
2588
2589 // Update the selection. Last two args are only used by
2590 // updateDoc, since they have to be expressed in the line

Callers 1

setSelectionFunction · 0.70

Calls 2

signalFunction · 0.85
clipPosFunction · 0.70

Tested by

no test coverage detected