Skip to content

Commit 32cb95c

Browse files
committed
Add warning to IBufferLine.length
1 parent 50c5579 commit 32cb95c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

typings/xterm.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,9 @@ declare module 'xterm' {
13431343

13441344
/**
13451345
* The length of the line, all call to getCell beyond the length will result
1346-
* in `undefined`.
1346+
* in `undefined`. Note that this may exceed columns as the line array may
1347+
* not be trimmed after a resize, compare against {@link Terminal.cols} to
1348+
* get the actual maximum length of a line.
13471349
*/
13481350
readonly length: number;
13491351

0 commit comments

Comments
 (0)