pass in startLine, endLine, startCol

This commit is contained in:
meganrogge
2025-10-28 11:46:41 -04:00
parent 18bafaf9c9
commit 5a467da137
3 changed files with 15 additions and 7 deletions
+2 -2
View File
@@ -453,8 +453,8 @@ export class SerializeAddon implements ITerminalAddon , ISerializeApi {
const range = options.range;
if (range) {
return handler.serialize({
start: { x: 0, y: typeof range.start === 'number' ? range.start : range.start.line },
end: { x: terminal.cols, y: typeof range.end === 'number' ? range.end : range.end.line }
start: { x: range.startCol, y: typeof range.startLine === 'number' ? range.startLine : range.startLine },
end: { x: terminal.cols, y: typeof range.endLine === 'number' ? range.endLine : range.endLine }
});
}
if (!onlySelection) {