Fixed translateBufferLineToStringWithWrap to correctly not remove spaces in the middle of a multiline wrapped string
This commit is contained in:
@@ -170,10 +170,10 @@ export class SearchHelper implements ISearchHelper {
|
|||||||
let lineWrapsToNext: boolean;
|
let lineWrapsToNext: boolean;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
lineString += this._terminal._core.buffer.translateBufferLineToString(lineIndex, true);
|
|
||||||
lineIndex++;
|
|
||||||
const nextLine = this._terminal._core.buffer.lines.get(lineIndex);
|
const nextLine = this._terminal._core.buffer.lines.get(lineIndex);
|
||||||
lineWrapsToNext = nextLine ? this._terminal._core.buffer.lines.get(lineIndex).isWrapped : false;
|
lineWrapsToNext = nextLine ? nextLine.isWrapped : false;
|
||||||
|
lineString += this._terminal._core.buffer.translateBufferLineToString(lineIndex, !lineWrapsToNext && trimRight);
|
||||||
|
lineIndex++;
|
||||||
} while (lineWrapsToNext);
|
} while (lineWrapsToNext);
|
||||||
|
|
||||||
return lineString;
|
return lineString;
|
||||||
|
|||||||
Reference in New Issue
Block a user