(cm)
| 4981 | // Make sure that at the end of the operation the current cursor is |
| 4982 | // shown. |
| 4983 | function ensureCursorVisible(cm) { |
| 4984 | resolveScrollToPos(cm) |
| 4985 | var cur = cm.getCursor() |
| 4986 | cm.curOp.scrollToPos = { from: cur, to: cur, margin: cm.options.cursorScrollMargin } |
| 4987 | } |
| 4988 | |
| 4989 | function scrollToCoords(cm, x, y) { |
| 4990 | if (x != null || y != null) { |
no test coverage detected