Skip to content

Commit

Permalink
Add warning to IBufferLine.length
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Nov 5, 2021
1 parent 50c5579 commit 32cb95c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,9 @@ declare module 'xterm' {

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

Expand Down

0 comments on commit 32cb95c

Please sign in to comment.