(doc, sel, options)
| 5106 | |
| 5107 | // Set a new selection. |
| 5108 | function setSelection(doc, sel, options) { |
| 5109 | setSelectionNoUndo(doc, sel, options); |
| 5110 | addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options); |
| 5111 | } |
| 5112 | |
| 5113 | function setSelectionNoUndo(doc, sel, options) { |
| 5114 | if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) |
no test coverage detected