Fix drag when selectioning via double/triple click

This commit is contained in:
Daniel Imms
2017-05-25 12:46:08 -07:00
parent 9f271de803
commit e29ab29441
2 changed files with 40 additions and 30 deletions
-7
View File
@@ -332,13 +332,6 @@ export class Renderer {
return;
}
// Swap the start and end if necessary
if (start[1] > end[1] || (start[1] === end[1] && start[0] > end[0])) {
const temp = start;
start = end;
end = temp;
}
// Translate from buffer position to viewport position
const viewportStartRow = start[1] - this._terminal.ydisp;
const viewportEndRow = end[1] - this._terminal.ydisp;