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

Function setSelectionNoUndo

tools/pythonauto/static/codemirrorepl/codemirror.js:1127–1136  ·  view source on GitHub ↗
(doc, sel, options)

Source from the content-addressed store, hash-verified

1125 }
1126
1127 function setSelectionNoUndo(doc, sel, options) {
1128 if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange"))
1129 sel = filterSelectionChange(doc, sel);
1130
1131 var bias = cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1;
1132 setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));
1133
1134 if (!(options && options.scroll === false) && doc.cm)
1135 ensureCursorVisible(doc.cm);
1136 }
1137
1138 function setSelectionInner(doc, sel) {
1139 if (sel.equals(doc.sel)) return;

Callers 4

setSelectionFunction · 0.85
onDropFunction · 0.85
makeChangeSingleDocFunction · 0.85

Calls 6

cmpFunction · 0.85
setSelectionInnerFunction · 0.85
skipAtomicInSelectionFunction · 0.85
ensureCursorVisibleFunction · 0.85
hasHandlerFunction · 0.70
filterSelectionChangeFunction · 0.70

Tested by

no test coverage detected