Use _selectWordA

This commit is contained in:
Bruno Ribeito
2018-01-31 00:01:46 +00:00
parent bbac1801e5
commit 983af8fac2
+2 -7
View File
@@ -269,13 +269,8 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
public selectWordAtCursor(event: MouseEvent): void {
const coords = this._getMouseBufferCoords(event);
if (coords) {
const wordPosition = this._getWordAt(coords, false);
if (wordPosition) {
this._model.selectionStart = [wordPosition.start, coords[1]];
this._model.selectionStartLength = wordPosition.length;
this._model.selectionEnd = [this._model.areSelectionValuesReversed() ? wordPosition.start : (wordPosition.start + wordPosition.length), coords[1]];
this.refresh(true);
}
this._selectWordAt(coords, false);
this.refresh(true);
}
}