(n)
| 758 | |
| 759 | // Update the selection |
| 760 | function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;} |
| 761 | setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line)); |
| 762 | |
| 763 | // Make sure the scroll-size div has the correct height. |