Return undefined if cell or line doesn't exist

This commit is contained in:
Daniel Imms
2019-05-11 20:46:55 -07:00
parent cd3f2609d6
commit f41e00ed97
2 changed files with 10 additions and 5 deletions
+3 -3
View File
@@ -895,11 +895,11 @@ declare module 'xterm' {
readonly length: number;
/**
* Gets a line from the buffer.
* Gets a line from the buffer, or undefined if the line index does not exist.
*
* @param y The line index to get.
*/
getLine(y: number): IBufferLine;
getLine(y: number): IBufferLine | undefined;
}
interface IBufferLine {
@@ -909,7 +909,7 @@ declare module 'xterm' {
readonly isWrapped: boolean;
/**
* Gets a cell from the line.
* Gets a cell from the line, or undefined if the line index does not exist.
*
* @param x The character index to get.
*/