Skip to content

Commit

Permalink
Fixed the case that, if findPrevious is run without any selection, th…
Browse files Browse the repository at this point in the history
…en start scan at the last row
  • Loading branch information
ntchjb committed Mar 15, 2019
1 parent 48a98fa commit 03e648a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/search/SearchHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 03e648a

Please sign in to comment.