(doc, anchor, head)
| 2579 | } |
| 2580 | |
| 2581 | function filterSelectionChange(doc, anchor, head) { |
| 2582 | var obj = {anchor: anchor, head: head}; |
| 2583 | signal(doc, "beforeSelectionChange", doc, obj); |
| 2584 | if (doc.cm) signal(doc.cm, "beforeSelectionChange", doc.cm, obj); |
| 2585 | obj.anchor = clipPos(doc, obj.anchor); obj.head = clipPos(doc, obj.head); |
| 2586 | return obj; |
| 2587 | } |
| 2588 | |
| 2589 | // Update the selection. Last two args are only used by |
| 2590 | // updateDoc, since they have to be expressed in the line |
no test coverage detected