(doc, sel, options)
| 6955 | |
| 6956 | // Set a new selection. |
| 6957 | function setSelection(doc, sel, options) { |
| 6958 | setSelectionNoUndo(doc, sel, options) |
| 6959 | addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options) |
| 6960 | } |
| 6961 | |
| 6962 | function setSelectionNoUndo(doc, sel, options) { |
| 6963 | if (hasHandler(doc, "beforeSelectionChange") || (doc.cm && hasHandler(doc.cm, "beforeSelectionChange"))) { |
no test coverage detected