From 32cb95c7fb871a01fdd72be4e439947a1ae9636f Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 5 Nov 2021 08:53:48 -0700 Subject: [PATCH] Add warning to IBufferLine.length --- typings/xterm.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typings/xterm.d.ts b/typings/xterm.d.ts index ba2be988..1b08cc39 100644 --- a/typings/xterm.d.ts +++ b/typings/xterm.d.ts @@ -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;