From f9e83341418d88ab5b3c9247f57f76ca4aeb8bff Mon Sep 17 00:00:00 2001 From: Max Risuhin Date: Sat, 29 Jun 2019 15:21:37 +0300 Subject: [PATCH] Reset isWrapped line flag. --- src/WindowsMode.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WindowsMode.ts b/src/WindowsMode.ts index 33b4972b..0838cae2 100644 --- a/src/WindowsMode.ts +++ b/src/WindowsMode.ts @@ -22,9 +22,7 @@ export function applyWindowsMode(terminal: ITerminal): IDisposable { const line = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y - 1); const lastChar = line.get(terminal.cols - 1); - if (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE) { - const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y); - nextLine.isWrapped = true; - } + const nextLine = terminal.buffer.lines.get(terminal.buffer.ybase + terminal.buffer.y); + nextLine.isWrapped = (lastChar[CHAR_DATA_CODE_INDEX] !== NULL_CELL_CODE && lastChar[CHAR_DATA_CODE_INDEX] !== WHITESPACE_CELL_CODE); }); }