Fixed the case that, if findPrevious is run without any selection, then start scan at the last row

This commit is contained in:
ntchjb
2019-03-15 19:15:41 +07:00
parent 48a98fa29f
commit 03e648a0fb
+1 -1
View File
@@ -115,7 +115,7 @@ export class SearchHelper implements ISearchHelper {
}
const isReverseSearch = true;
let startRow = this._terminal._core.buffer.ydisp;
let startRow = this._terminal.rows-1;
let startCol: number = this._terminal.cols;
if (selectionManager.selectionStart) {