Skip to content

Commit 2d3909b

Browse files
committed
Fix lint
1 parent 1e18962 commit 2d3909b

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

addons/addon-webgl/src/GlyphRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void main() {
8080

8181
const enum Constants {
8282
INDICES_PER_CELL = 11,
83-
BYTES_PER_CELL = INDICES_PER_CELL * 4/*Float32Array.BYTES_PER_ELEMENT*/,
83+
BYTES_PER_CELL = INDICES_PER_CELL * 4/* Float32Array.BYTES_PER_ELEMENT */,
8484
CELL_POSITION_INDICES = 2
8585
}
8686

src/common/buffer/BufferLine.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import { CellData } from 'common/buffer/CellData';
99
import { Attributes, BgFlags, CHAR_DATA_ATTR_INDEX, CHAR_DATA_CHAR_INDEX, CHAR_DATA_WIDTH_INDEX, Content, NULL_CELL_CHAR, NULL_CELL_CODE, NULL_CELL_WIDTH, WHITESPACE_CELL_CHAR } from 'common/buffer/Constants';
1010
import { stringFromCodePoint } from 'common/input/TextDecoder';
1111

12+
// Buffer memory layout:
13+
//
14+
// [0]: content `uint32_t` - wcwidth(2) comb(1) codepoint(21)
15+
// [1]: fg `uint32_t` - flags(8) r(8) g(8) b(8)
16+
// [2]: bg `uint32_t` - flags(8) r(8) g(8) b(8)
17+
1218
const enum Constants {
1319
/** The number of 32 bit array indices taken by one cell. */
1420
CELL_INDICIES = 3,
@@ -64,14 +70,6 @@ export interface IBufferLineStringCache {
6470
* memory allocs / GC pressure can be greatly reduced by reusing the CellData object.
6571
*/
6672
export class BufferLine implements IBufferLine {
67-
/**
68-
* Buffer memory layout:
69-
*
70-
* | uint32_t | uint32_t | uint32_t |
71-
* |----------------------------------------|---------------------------------|---------------------------------|
72-
* | `content` | `FG` | `BG` |
73-
* | `wcwidth(2)` `comb(1)` `codepoint(21)` | `flags(8)` `R(8)` `G(8)` `B(8)` | `flags(8)` `R(8)` `G(8)` `B(8)` |
74-
*/
7573
protected _data: Uint32Array;
7674
protected _combined: {[index: number]: string} = {};
7775
protected _extendedAttrs: {[index: number]: IExtendedAttrs | undefined} = {};

0 commit comments

Comments
 (0)