(doc, sel, options)
| 2193 | |
| 2194 | // Set a new selection. |
| 2195 | function setSelection(doc, sel, options) { |
| 2196 | setSelectionNoUndo(doc, sel, options); |
| 2197 | addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options); |
| 2198 | } |
| 2199 | |
| 2200 | function setSelectionNoUndo(doc, sel, options) { |
| 2201 | if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) |
no test coverage detected