Added test and fixed uncovered buy

This commit is contained in:
Alex Ross
2018-09-11 16:29:11 -07:00
parent 8979eea810
commit 5aa6656971
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ export class SearchHelper implements ISearchHelper {
let lineWrapsToNext: boolean;
do {
const nextLine = this._terminal._core.buffer.lines.get(lineIndex);
const nextLine = this._terminal._core.buffer.lines.get(lineIndex + 1);
lineWrapsToNext = nextLine ? nextLine.isWrapped : false;
lineString += this._terminal._core.buffer.translateBufferLineToString(lineIndex, !lineWrapsToNext && trimRight);
lineIndex++;