From 03e648a0fbc250438d28001036261bba951292ef Mon Sep 17 00:00:00 2001 From: ntchjb Date: Fri, 15 Mar 2019 19:15:41 +0700 Subject: [PATCH] Fixed the case that, if findPrevious is run without any selection, then start scan at the last row --- src/addons/search/SearchHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/search/SearchHelper.ts b/src/addons/search/SearchHelper.ts index 525e25dc..a2258e48 100644 --- a/src/addons/search/SearchHelper.ts +++ b/src/addons/search/SearchHelper.ts @@ -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) {