Very basic find implementation

Part of #553
This commit is contained in:
Daniel Imms
2017-06-12 16:27:13 -07:00
parent a889fef752
commit 8d12881a1c
4 changed files with 90 additions and 0 deletions
+9
View File
@@ -551,6 +551,15 @@ export class SelectionManager extends EventEmitter {
return charIndex;
}
public setSelection(col: number, row: number, length: number): void {
this._model.clearSelection();
this._removeMouseDownListeners();
console.log('setSelection', arguments);
this._model.selectionStart = [col, row];
this._model.selectionStartLength = length;
this.refresh();
}
/**
* Selects the word at the coordinates specified. Words are defined as all
* non-whitespace characters.