Cleared terminal lines should have isWrapped reset

Fixes #1710
This commit is contained in:
Alex Ross
2018-10-01 13:34:13 -07:00
parent d4ec50e7de
commit 18871f0d3c
3 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ export class SearchHelper implements ISearchHelper {
do {
const nextLine = this._terminal._core.buffer.lines.get(lineIndex + 1);
lineWrapsToNext = nextLine ? nextLine.isWrapped : false;
lineString += this._terminal._core.buffer.translateBufferLineToString(lineIndex, !lineWrapsToNext && trimRight);
lineString += this._terminal._core.buffer.translateBufferLineToString(lineIndex, !lineWrapsToNext && trimRight).substring(0, this._terminal.cols);
lineIndex++;
} while (lineWrapsToNext);