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

Function insertBoolHere

lib/web/drags.js:1305–1312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1303};
1304
1305var insertBoolHere = function () {
1306 var selection_start = cm.getCursor("from");
1307 cm.replaceRange(" 1 ", selection_start); // we pad with spaces, otherwise when we replace
1308 // this text we blow away our widget
1309 // as well
1310 var selection_end = cm.getCursor("to");
1311 return insertBool(selection_start, selection_end);
1312};
1313
1314var insertBoolAtSelection = function () {
1315 var selection_start = cm.getCursor("from");

Callers 1

insertBoolAtSelectionFunction · 0.85

Calls 2

insertBoolFunction · 0.85
replaceRangeMethod · 0.80

Tested by

no test coverage detected