Skip to content

Commit e40cf80

Browse files
authored
Merge pull request #3544 from xtermjs/tyriar/length_warning
Add warning to IBufferLine.length
2 parents b206853 + 32cb95c commit e40cf80

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
@@ -1371,7 +1371,9 @@ declare module 'xterm' {
13711371

13721372
/**
13731373
* The length of the line, all call to getCell beyond the length will result
1374-
* in `undefined`.
1374+
* in `undefined`. Note that this may exceed columns as the line array may
1375+
* not be trimmed after a resize, compare against {@link Terminal.cols} to
1376+
* get the actual maximum length of a line.
13751377
*/
13761378
readonly length: number;
13771379

0 commit comments

Comments
 (0)