diff --git a/addons/addon-serialize/src/SerializeAddon.ts b/addons/addon-serialize/src/SerializeAddon.ts index 0aad8e1d6..26ede1c41 100644 --- a/addons/addon-serialize/src/SerializeAddon.ts +++ b/addons/addon-serialize/src/SerializeAddon.ts @@ -173,7 +173,7 @@ class StringSerializeHandler extends BaseSerializeHandler { private _thisRowLastSecondChar: IBufferCell = this._buffer.getNullCell(); private _nextRowFirstChar: IBufferCell = this._buffer.getNullCell(); protected _rowEnd(row: number, isLastRow: boolean): void { - // if there is colorful empty cell at line end, whe must pad it back, or the the color block + // if there is colorful empty cell at line end, we must pad it back, or the color block // will missing if (this._nullCellCount > 0 && !equalBg(this._cursorStyle, this._backgroundCell)) { // use clear right to set background. diff --git a/addons/addon-webgl/src/TextureAtlas.ts b/addons/addon-webgl/src/TextureAtlas.ts index dab0b1c85..f9c0f3cfe 100644 --- a/addons/addon-webgl/src/TextureAtlas.ts +++ b/addons/addon-webgl/src/TextureAtlas.ts @@ -1125,7 +1125,7 @@ function clearColor(imageData: ImageData, bg: IColor, fg: IColor, enableThreshol // were covered (fg=#8ae234, bg=#c4a000). const threshold = Math.floor((Math.abs(r - fgR) + Math.abs(g - fgG) + Math.abs(b - fgB)) / 12); - // Set alpha channel of relevent pixels to 0 + // Set alpha channel of relevant pixels to 0 let isEmpty = true; for (let offset = 0; offset < imageData.data.length; offset += 4) { // Check exact match diff --git a/addons/addon-webgl/src/WebglAddon.ts b/addons/addon-webgl/src/WebglAddon.ts index 624c9ea38..f61206b13 100644 --- a/addons/addon-webgl/src/WebglAddon.ts +++ b/addons/addon-webgl/src/WebglAddon.ts @@ -40,7 +40,7 @@ export class WebglAddon extends Disposable implements ITerminalAddon, IWebglApi }; const gl = document.createElement('canvas').getContext('webgl2', contextAttributes) as IWebGL2RenderingContext; if (!gl) { - throw new Error('Webgl2 is only supported on Safari 16 and above'); + throw new Error('WebGL2 is only supported on Safari 16 and above'); } } super(); diff --git a/src/common/buffer/AttributeData.ts b/src/common/buffer/AttributeData.ts index 3bcb22a00..0ea2e4144 100644 --- a/src/common/buffer/AttributeData.ts +++ b/src/common/buffer/AttributeData.ts @@ -204,7 +204,7 @@ export class ExtendedAttrs implements IExtendedAttrs { /** * Convenient method to indicate whether the object holds no additional information, - * that needs to be persistant in the buffer. + * that needs to be persistent in the buffer. */ public isEmpty(): boolean { return this.underlineStyle === UnderlineStyle.NONE && this._urlId === 0; diff --git a/src/common/buffer/Buffer.ts b/src/common/buffer/Buffer.ts index be3df09b1..a30f631e0 100644 --- a/src/common/buffer/Buffer.ts +++ b/src/common/buffer/Buffer.ts @@ -578,7 +578,7 @@ export class Buffer extends Disposable implements IBuffer { * @param i The index to start setting up tab stops from. */ public setupTabStops(i?: number): void { - if (i !== null && i !== undefined) { + if (i !== undefined) { if (!this.tabs[i]) { i = this.prevStop(i); } diff --git a/src/common/services/Services.ts b/src/common/services/Services.ts index cd1bc9cd4..17fb0abaa 100644 --- a/src/common/services/Services.ts +++ b/src/common/services/Services.ts @@ -324,7 +324,7 @@ export interface IOscLinkService { * bit 0: shouldJoin - should combine with preceding character. * bit 1..2: wcwidth - see UnicodeCharWidth. * bit 3..31: class of character (currently only 4 bits are used). - * This is used to determined grapheme clustering - i.e. which codepoints + * This is used to determine grapheme clustering - i.e. which codepoints * are to be combined into a single compound character. * * Use the UnicodeService static function createPropertyValue to create a