(doc, sel, options)
| 2091 | |
| 2092 | // Set a new selection. |
| 2093 | function setSelection(doc, sel, options) { |
| 2094 | setSelectionNoUndo(doc, sel, options); |
| 2095 | addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options); |
| 2096 | } |
| 2097 | |
| 2098 | function setSelectionNoUndo(doc, sel, options) { |
| 2099 | if (hasHandler(doc, "beforeSelectionChange") || doc.cm && hasHandler(doc.cm, "beforeSelectionChange")) |
no test coverage detected