Fixed the case that, if findPrevious is run without any selection, then start scan at the last row
This commit is contained in:
@@ -115,7 +115,7 @@ export class SearchHelper implements ISearchHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isReverseSearch = true;
|
const isReverseSearch = true;
|
||||||
let startRow = this._terminal._core.buffer.ydisp;
|
let startRow = this._terminal.rows-1;
|
||||||
let startCol: number = this._terminal.cols;
|
let startCol: number = this._terminal.cols;
|
||||||
|
|
||||||
if (selectionManager.selectionStart) {
|
if (selectionManager.selectionStart) {
|
||||||
|
|||||||
Reference in New Issue
Block a user