(from, to)
| 1365 | else shiftSelecting = null; |
| 1366 | } |
| 1367 | function setSelectionUser(from, to) { |
| 1368 | var sh = shiftSelecting && clipPos(shiftSelecting); |
| 1369 | if (sh) { |
| 1370 | if (posLess(sh, from)) from = sh; |
| 1371 | else if (posLess(to, sh)) to = sh; |
| 1372 | } |
| 1373 | setSelection(from, to); |
| 1374 | userSelChange = true; |
| 1375 | } |
| 1376 | // Update the selection. Last two args are only used by |
| 1377 | // updateLines, since they have to be expressed in the line |
| 1378 | // numbers before the update. |
no test coverage detected