diff --git a/addons/xterm-addon-serialize/src/SerializeAddon.ts b/addons/xterm-addon-serialize/src/SerializeAddon.ts index c02c717e..e1db6f8e 100644 --- a/addons/xterm-addon-serialize/src/SerializeAddon.ts +++ b/addons/xterm-addon-serialize/src/SerializeAddon.ts @@ -412,7 +412,7 @@ export class SerializeAddon implements ITerminalAddon { const correctRows = (scrollback === undefined) ? maxRows : constrain(scrollback + terminal.rows, 0, maxRows); return handler.serialize({ start: { x: maxRows - correctRows, y: 0 }, - end: { x: maxRows, y: terminal.cols } + end: { x: maxRows - 1, y: terminal.cols } }); } @@ -425,7 +425,7 @@ export class SerializeAddon implements ITerminalAddon { const correctRows = (scrollback === undefined) ? maxRows : constrain(scrollback + terminal.rows, 0, maxRows); return handler.serialize({ start: { x: maxRows - correctRows, y: 0 }, - end: { x: maxRows, y: terminal.cols } + end: { x: maxRows - 1, y: terminal.cols } }); }