(n)
| 958 | |
| 959 | // Update the selection |
| 960 | function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;} |
| 961 | setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line)); |
| 962 | |
| 963 | // Make sure the scroll-size div has the correct height. |