wrong use handle/selection

This commit is contained in:
rebornix 2021-02-26 08:22:49 -08:00
parent 460ebdaaf5
commit 1f08b8f902

View file

@ -282,7 +282,7 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
break;
}
if (diff[0] + diff[1] > primaryHandle) {
if (diff[0] + diff[1] > primarySelectionIndex) {
endSelectionHandles = [this._viewCells[diff[0] + delta].handle];
break;
}