Merge pull request #2366 from Tyriar/2365_shift_click

Don't throw if first click is incremental
This commit is contained in:
Daniel Imms
2019-08-07 07:42:45 -07:00
committed by GitHub
+3 -2
View File
@@ -563,9 +563,10 @@ export class SelectionService implements ISelectionService {
// to be sent to the pty.
event.stopImmediatePropagation();
// Something went wrong
// Do nothing if there is no selection start, this can happen if the first
// click in the terminal is an incremental click
if (!this._model.selectionStart) {
throw new Error('Selection start position was not set before mousemove event');
return;
}
// Record the previous position so we know whether to redraw the selection