arrays.range, arrays.weave

This commit is contained in:
Joao Moreno
2017-09-14 17:13:53 +02:00
parent 09050b6aef
commit 9afefc8b00
2 changed files with 36 additions and 4 deletions

View File

@@ -398,7 +398,7 @@ class MouseController<T> implements IDisposable {
if (isSelectionRangeChangeEvent(e) && reference !== undefined) {
const min = Math.min(reference, focus);
const max = Math.max(reference, focus);
const rangeSelection = range(max + 1, min);
const rangeSelection = range(min, max + 1);
const selection = this.list.getSelection();
const contiguousRange = getContiguousRangeContaining(disjunction(selection, [reference]), reference);