Start find previous from the current viewport

This commit is contained in:
Daniel Imms
2019-04-09 19:53:22 -04:00
parent 71827f7981
commit 8b5b64605e
+2 -2
View File
@@ -115,8 +115,8 @@ export class SearchHelper implements ISearchHelper {
}
const isReverseSearch = true;
let startRow = this._terminal.rows - 1;
let startCol: number = this._terminal.cols;
let startRow = this._terminal._core.buffer.ydisp + this._terminal.rows - 1;
let startCol = this._terminal.cols;
if (selectionManager.selectionStart) {
// Start from the selection start if there is a selection