Improve selection cell selection

Fixes #709
This commit is contained in:
Daniel Imms
2017-06-18 12:02:58 -07:00
parent 9cc878cea7
commit b05814e6a5
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ export class SelectionManager extends EventEmitter {
* @param event The mouse event.
*/
private _getMouseBufferCoords(event: MouseEvent): [number, number] {
const coords = Mouse.getCoords(event, this._rowContainer, this._charMeasure, this._terminal.cols, this._terminal.rows);
const coords = Mouse.getCoords(event, this._rowContainer, this._charMeasure, this._terminal.cols, this._terminal.rows, true);
// Convert to 0-based
coords[0]--;
coords[1]--;