Merge pull request #1706 from whydoubt/blank_line_attributes

Fill lines inserted from scrolling with erase attributes
This commit is contained in:
jerch
2018-10-24 17:39:05 +02:00
committed by GitHub
+1 -1
View File
@@ -1174,7 +1174,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
* @param isWrapped Whether the new line is wrapped from the previous line.
*/
public scroll(isWrapped?: boolean): void {
const newLine = this.buffer.getBlankLine(DEFAULT_ATTR, isWrapped);
const newLine = this.buffer.getBlankLine(this.eraseAttr(), isWrapped);
const topRow = this.buffer.ybase + this.buffer.scrollTop;
const bottomRow = this.buffer.ybase + this.buffer.scrollBottom;