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

Function close

lib/web/CodeMirror/src/input/ContentEditableInput.js:422–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 let text = "", closing = false, lineSep = cm.doc.lineSeparator(), extraLinebreak = false
421 function recognizeMarker(id) { return marker => marker.id == id }
422 function close() {
423 if (closing) {
424 text += lineSep
425 if (extraLinebreak) text += lineSep
426 closing = extraLinebreak = false
427 }
428 }
429 function addText(str) {
430 if (str) {
431 close()

Callers 2

addTextFunction · 0.70
walkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected