MCPcopy
hub / github.com/xtermjs/xterm.js / stringArrayToRow

Function stringArrayToRow

src/browser/services/SelectionService.test.ts:65–69  ·  view source on GitHub ↗
(chars: string[])

Source from the content-addressed store, hash-verified

63 }
64
65 function stringArrayToRow(chars: string[]): IBufferLine {
66 const line = new BufferLine(chars.length);
67 chars.map((c, idx) => line.setCell(idx, CellData.fromCharData([0, c, 1, c.charCodeAt(0)])));
68 return line;
69 }
70
71 describe('_selectWordAt', () => {
72 it('should expand selection for normal width chars', () => {

Callers 1

Calls 3

setCellMethod · 0.95
fromCharDataMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected