MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _getWindowedLineStrings

Method _getWindowedLineStrings

src/server/web/public/terminal.js:6240–6252  ·  view source on GitHub ↗
(e3, t3)

Source from the content-addressed store, hash-verified

6238 const h = { start: { x: s2 + 1, y: t4 + 1 }, end: { x: l2, y: a2 + 1 } };
6239 p.push({ range: h, text: e4, activate: i });
6240 }
6241 return p;
6242 }
6243 static _getWindowedLineStrings(e3, t3) {
6244 let n3, o3 = e3, r = e3, i = 0, s = "";
6245 const a = [];
6246 if (n3 = t3.buffer.active.getLine(e3)) {
6247 const e4 = n3.translateToString(true);
6248 if (n3.isWrapped && " " !== e4[0]) {
6249 for (i = 0; (n3 = t3.buffer.active.getLine(--o3)) && i < 2048 && (s = n3.translateToString(true), i += s.length, a.push(s), n3.isWrapped && -1 === s.indexOf(" ")); ) ;
6250 a.reverse();
6251 }
6252 for (a.push(e4), i = 0; (n3 = t3.buffer.active.getLine(++r)) && n3.isWrapped && i < 2048 && (s = n3.translateToString(true), i += s.length, a.push(s), -1 === s.indexOf(" ")); ) ;
6253 }
6254 return [a, o3];
6255 }

Callers 1

computeLinkMethod · 0.80

Calls 3

getLineMethod · 0.45
translateToStringMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected