(from, to)
| 1165 | else shiftSelecting = null; |
| 1166 | } |
| 1167 | function setSelectionUser(from, to) { |
| 1168 | var sh = shiftSelecting && clipPos(shiftSelecting); |
| 1169 | if (sh) { |
| 1170 | if (posLess(sh, from)) from = sh; |
| 1171 | else if (posLess(to, sh)) to = sh; |
| 1172 | } |
| 1173 | setSelection(from, to); |
| 1174 | userSelChange = true; |
| 1175 | } |
| 1176 | // Update the selection. Last two args are only used by |
| 1177 | // updateLines, since they have to be expressed in the line |
| 1178 | // numbers before the update. |
no test coverage detected